Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Stata Tutorials - Using the "do" file editor

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,145
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 18, 2011

This tutorial introduces Stata's "do" file editor. Groups of commands can be saved and executed sequentially using "do" files.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ProfessorHuber)

  • You can use the "graph export" command after each graph and it will save it in a variety of formats (png, ps, tiff, etc). If the final destination for the graph is a PDF file, I would recommend using the "ps" format. Here are some examples:

    graph export MyGraph.png, as(png) replace

    graph export MyGraph.ps, as(ps) mag(160) logo(off) orientation(landscape) replace

  • Hi, i hope you can see this in time:) . I am rookie in using stata, and I have a do file given to me by my partener on our assignment. We are suppose to carry out a reasearch and it yields a few graphs which she has saved in the do file. Now, when I run it, it runs all of the commands in succession and ends up with last one,- a graph. However once the program gets me there I cant seem to find where are the previous graphs. I need to export all of them for our project. I hope you understood.

  • @slickvampa Sorry - I didn't see any previous posts. Yes - the "do" file will run all the graph commands sequentially and each new graph will replace the previous graph in the window. To see each graph separately, highlight a particular graph command in the do file editor and click the "run" button. Then it will only run that particular graph command and leave it on the screen. Hope this helps.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • yes it helps thanks. that is what i have been doing :). So there is no short cut to get backwards aftter stata has finished the do file?

    p.s. i meant "see this in time" because my project is due tomorrow :))

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more