Announcement

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

  • I it possible to use addstat option in outreg2 with multiple models

    I am trying to add F-stat in the outreg2 output, but I am only getting the F-Stat of the last model repeated in all models.

    the sample code I am using is below.

    Code:
    outreg2 [RE RE_tdummy FE FE_tdummy] using "G:\results.doc", replace stats(coef pval) addstat(FStat, e(F))
    Last edited by Joao Macosso; 25 Aug 2023, 02:37.

  • #2
    outreg2 is from SSC (FAQ Advice #12). This is an old command and it looks buggy. Instead of storing each model after estimation, just output the results and use the -append- option to include additional results.

    Code:
    sysuse auto, clear
    regress mpg weight, robust
    outreg2  using myfile.txt, replace stats(coef pval) addstat(FStat, e(F))
    regress mpg weight disp, robust
    outreg2  using myfile.txt, append stats(coef pval) addstat(FStat, e(F))
    Res.:

    Click image for larger version

Name:	Screenshot 2023-08-25 145748.png
Views:	1
Size:	32.0 KB
ID:	1725025

    Comment

    Working...
    X