brianne

brianne - Using Statas esttab and outreg2 with MS-Word to...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Using Stata’s esttab and outreg2 with MS-Word to make publication-style regression tables by Brianne Barclay Department of Sociology/Anthropology Florida International University University Park Miami, FL 33199 June 2007 Note: Those who prefer to use Excel may type the esttab option csv or the outreg2 option excel to display the regression results in an Excel spreadsheet, then click the resulting link in the Stata results window to display the Excel output. Another alternative is to type the tex option to create LaTeX output. Other useful Stata commands for making regression tables include estout, mktab , modl , and xml_tab. To download hsb2.dta: http://www.ats.ucla.edu/STAT/stata/notes/control.htm use hsb2, clear findit esttab [download] or: ssc install esttab findit outreg2 [download] ssc install outreg2 § esttab reg science read write eststo reg science read write math female eststo esttab using science.rtf, se b(%9.2f) ar2(%9.2f) starlevels(* .05 ** .01 *** .001) nodepvars nomtitles title(“OLS Science Models”) addnotes(“Note: Put your notes here.”) replace Then click on the output link in the Stata results window.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 § outreg2 reg science read write outreg2 using science, ctitle(Model) bdec(2) tdec(2) rdec(2) adec(2) alpha(.001, .01, .05) addstat(Adj. R-squared, e(r2_a)) addnote(Put your notes here.) word replace reg science read write math female outreg2 using science, ctitle(Model) bdec(2) tdec(2) rdec(2) adec(2) alpha(.001, .01, .05) addstat(Adj. R-squared, e(r2_a)) word append If an error message appears, carefully check that the formatting of the outreg2 command is correct. For example, while the above commands produce the same output whether or not the content of ctitle and addnote is contained within quotation marks, they do not work if addnote is specified as follows: addnote(Note: Put your notes here.) That is, typing the colon and “Note” does not permit the command to work. Here are some other useful outreg2 options: ci, beta, eform [exponentiated], symbol(+, *, **) [to change the p-value significance symbols], onecol [output displayed in one column only]. After typing the outreg2 commands, click the blue link in Stata to see ('seeout') the table results in Stata's spreadsheet, or click the rtf link to see the Word formatted text. outreg2 has created txt and rtf files that contain the regression results. These files are located in the folder in which you are working. txt is easy to deal with: just tab things into alignment. rtf ‘s advantage is that it has already formatted an elegant output table, but its disadvantage is that fine-tuning the table often involves heavy MS-Word table-formatting. § Here are step-by-step instructions for doing necessary table editing in Word. The example uses the table produced by outreg2.
Background image of page 2
3 The Initial Outreg2 rtf Document (1) (2) COEFFICIENT Model Model read 0.26*** 0.26*** (0.07) (0.07) write 0.30*** 0.30*** (0.07) (0.07) math 0.28*** 0.28*** (0.08) (0.08) female -3.57*** -3.57***
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

brianne - Using Statas esttab and outreg2 with MS-Word to...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online