Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reporting observations and adj R^2 at the end of the table using outreg2

    Hi,

    I am using outreg2 to get the regression output. But outreg2 report results the following way. I want to report observations and adjusted R2 after industry FE and Year FE. Can any one tell me how I can do that using outreg2?
    Observations
    Adjusted R-squared
    Industry FE
    Year FE


  • #2
    outreg2 is from SSC, as you are asked to explain (FAQ Advice #12). Specify these within -addtext()- and suppress the defaults, e.g.,

    Code:
    webuse grunfeld, clear
    regress invest mvalue kstock i.year 
    outreg2 using myfile, keep(mvalue kstock) addtext(Firm FE, NO, ///
    Year FE, YES, Observations, `e(N)', Adjusted R-squared, ///
    `: di %9.3f e(r2_a)') noni nor2 noobs replace
    Res.:


    Click image for larger version

Name:	Untitled.png
Views:	1
Size:	35.4 KB
ID:	1586595



    Comment


    • #3
      Andrew, Thank you very much. I was using add text but never thought of including observations in that.

      Comment

      Working...
      X