Home >Common Problem >How to export stata results to word
Method: First enter "ssc install asdoc, replace" in Stata to install the external command "asdoc"; then enter "asdoc reg price mpg weight" in the data; finally generate a file named "Myfile.doc" ” file.
The operating environment of this tutorial: Windows 7 system, Microsoft Office word 2013 version, Dell G3 computer.
First, enter the code (ssc install asdoc, replace) in Stata to install the external command asdoc.
#After the installation is complete, open our data. The editor uses the data auto that comes with Stata as an example.
Next, the editor will do a regression analysis of the mpg and weight variables on the price variable, and export the results directly to Word. Enter the command: asdoc reg price mpg weight. As shown in the figure, Stata will automatically generate a file named "Myfile.doc".
Click to open the Myfile.doc file. You can see that the regression analysis results we want have been exported to the Word document.
After that we just need to adjust the format
For more computer related knowledge, please visit FAQ column!
The above is the detailed content of How to export stata results to word. For more information, please follow other related articles on the PHP Chinese website!