Announcement

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

  • Publication Style Tables

    Hi Statalisters,

    I have a couple System GMM tables that I would like to convert in the publication style where it looks similar to this:

    Click image for larger version

Name:	Screen Shot 2017-08-11 at 8.39.51 PM.png
Views:	1
Size:	89.6 KB
ID:	1406017


    I've managed to store the tables(General_GMM and No_GDPG_GMM) and present the number of observations (N), degrees of freedom (df_m), and the chi squared (chi2), but it's a matter of finding the right scalars to include the p values for my AR tests (first and second autocorrelation), Sargan, Hansen, and Difference-in-Hansen. Also, how can I add a title and label the tables?

    This is the code that I have so far
    Code:
    esttab General_GMM No_GDPG_GMM, b(a3) se(a3) star(* 0.10 ** 0.05 *** 0.01) scalars(N df_m chi2) nogaps
    Thank you in advance for any help!

    Best regards,
    Georgina

  • #2
    Folks use various routines to write tables. I know that outreg2 will do tables like this (except for bold as far as I know). estout and some others also will do the job.

    Comment


    • #3
      Hi @Georgina Milliot,
      Code:
      eststo clear      
      sysuse auto         
      eststo: quietly regress price weight mpg
      eststo: quietly regress price weight mpg foreign
      eststo: quietly regress price weight mpg foreign trunk
      esttab, ar2 title(Price) scalars(N df_m chi2) varlabels(_cons Constant) nogaps style(fixed) noconstant

      Comment


      • #4
        Hi Enrico Zorzi ,

        Thank you for the code. I ended up formatting the table manually but I will try this next time!

        Kind regards,
        Georgina

        Comment

        Working...
        X