You can also specify options of excel and/or tex in place of the word option, if you wish your regression results to be exported to these formats as well.įollowing the command, a link called ‘results.rtf’ would appear in your Stata window, clicking on which will open a word processing file with the regression results in a table. The option of word creates a Word file (by the name of ‘results’) that holds the regression output. Using results indicates to Stata that the results are to be exported to a file named ‘results’. To export the regression output in Stata, we use the outreg2 command with the given syntax: outreg2 using results, word Let us proceed towards using outreg2 by first running the following OLS regression, where the variable ‘price’ is regressed on five other independent variables: regress price mpg headroom trunk gear_ratio displacement This gives you a summary of data characteristics (variable types, labels, etc.). Let’s therefore describe the data through: describe It is good practice to observe the characteristics of the data before doing any data analysis on it. Where the option of clear ensures that any previous data in Stata’s memory that might still be loaded is erased. To see how the command works, we will load the 1978 Automobile data from Stata through: sysuse auto.dta, clear
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |