Reformatting Regression Output in Stata

5 January 2017
5 Jan 2017
1 min read

One of the most time intensive parts of data analysis isn’t completing the regression, but making the results of that regression more attractive to view. In the program Stata, this can be done using the block of code below.

ssc install outregĀ 

regress yx+z

outreg using cleanRegResults.doc, replace

regress ya+x+z

outreg using cleanRegResults.doc, mergeĀ 

Where a, x, y, and z are regression variables

The code block will first install the plugin necessary. The third line then creates a new .doc file1 that has the regression output displayed in column form. Lines four and five are not necessary, but are useful if the regression has multiple forms or if I want to compare the results of two different regressions.

  1. titled cleanRegResults ↩︎

Want to know more?

I spend a ton of time thinking on how to work smarter, not harder. If you'd like to be the first to know what I'm thinking about, sign up to the list below.

Practical Goal Setting

Speed up Mac Animations