Save graph stata do file


















Next use the translate command shown in the blog above to convert your file to a pdf. Open your pdf and save it as a word document. In the word document all of your table outputs will be in table format. You can click on the four-way arrow sign at the top left corner of a table to highlight the table, copy and then paste into your document.

In your new document you can change your columns and rows as you like. You can also copy the tables into Excel where it might be easier to format the numbers and borders.

From Excel you can copy into your document the formatted tables. I co-author many reports that require specific formatting styles and the tables cannot appear as images because other people may need to edit them and write text around them.

Got any advice? Your email address will not be published. SPSS makes it so easy to copy tables and graphs into another document. We will look at outputting tables, graphs, and log files in this article.

Getting Started with Stata. Jeff introduces you to the consistent structure that Stata uses to run every type of statistical analysis. Take Me to The Video! Comments Very clear and useful. Thank you. Saved me a lot of time. Hi Jeff, I used this code to convert. Can you help? Nick Cox. William gives excellent advice as always.

My own wild guess is that a version statement such as Code:. William and Nick As it turns out, Nick had it correct in that it was a version control issue. This was an old do-file that I wrote several years ago, the purpose of which is to allow my intro stats students to generate empirical sampling distributions based on random draws from different underlying distributions.

In any case, when I commented out the first line - version 5. Thanks again. Previous Next. Second, you cannot use the pulldown menus to save the contents of the results window i. How can you save your output? Here are a couple of solutions. You can use the mouse to scroll through the results window and mark an area that you want to save. You can then use the pulldown menu to choose Edit and then Copy.

This is illustrated below. You can then go to Microsoft Word and from its pulldown menu choose Edit then Paste. Most likely, the results will look lousy, that is, the text will be misaligned as shown below. This happens because the output from Stata uses fixed space fonts , and most fonts in Microsoft Word are proportionally spaced fonts for example, the text in the window above is Times New Roman.

The graph export command saves your current graph in the format you choose. Again, filename should be replaced by the name you want. The extension you choose will determine the file format. What formats are available depends on how you're running Stata:. Making graphs can take a long time, and if you have a lot of graphs to make you might want to use Stata MP on Linstat—but you can't export to emf format usually the best for use in Microsoft Word documents on Linstat.

This is where graph save comes in: create your graphs using Linstat, and save them using graph save. Then you can open the resulting. We've found that for best results in Word you generally want to use emf Enhanced Metafile format.

So first create your graph, then save it in emf format using graph export:. Next open the document into which you want to insert the graph using Word. Put the cursor at the desired location. Then click Insert , Picture , From File.



0コメント

  • 1000 / 1000