Stata Help

How to Put Results and Graphs into Word


It is easy to put both text output and graphs into Word. Here arre a couple of ways you can do it.

I. Cut & Paste

Cut & paste is the easiest way to move small to medium amounts of output and graphic images from Stata to Word. For text rresults, all you have to do is highlight the portion of the results window you want, select copy from Stata's Edit menu copy, select the location in the Word document you want to place the output and select paste from Word's Edit menu.

You need to be sure that the text output is the correct size so that it doesn't wrap around lines and that you use a monospaced font, such as courier, so that the columns line up.

For graphic images, select the graph window, select copy graph from the Edit menu, go to the Word document, select a location and select paste from Word's Edit menu. The copy graph command is for the widows version of Stata. For Macintosh Stata you just use the copy command.

II. Using a Log File

If you have a large amount of output it is easier have it all placed in a log file. To start a log file type the command, log using mylog.txt. You can use whatever filename you want in place of mylog.

It is important to use the .txt extension so that Stata will create a text log file. If you don't include the .txt extension Stata will format the log file in smcl which only Stata can read.

When you are done just type log close to close the log file. You can view the log file from inside Stata with the command type mylog.txt. Again, be sure to replace the name mylog with the filename that you are using.

You can open the log files in Word as "text only." One important note: Stata log files do not contain graphic images, only text results.


Phil Ender