Current location - Education and Training Encyclopedia - Graduation thesis - Stata regression result export file format
Stata regression result export file format
Computer: WIN 10

Software: 3.2 Free Edition

Software: Stata

1. First, enter the code (ssc install asdoc, replace) in Stata to install the external command asdoc.

2. After the installation is completed, open our data. Bian Xiao takes Stata's own data automatic car as an example.

3. Next, Bian Xiao regressed mpg and weight variables to price variables, and directly exported the results to Word. Enter the command: asdoc reg price mpg weight? . As shown in the figure, Stata will automatically generate a file named "Myfile.doc".

4. Click to open the Myfile.doc file, and you can see that the regression analysis results we want have been exported to the Word document.

5. After that, we just need to adjust the format. Is it convenient?