Announcement

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

  • Reporting Standard Errors using esttab to .rtf files

    Hello,

    I am trying to use esttab to produce tables to be exported into a .rtf file. However, despite specifying it in the command, no standard errors appear below the coefficients in the table. Trying it with t-statistics also fails to report anything.

    Code:
    esttab Model1 Model2 Model3 Model4 Model5 Model6 using "Model Table.rtf",
    replace cells(b(star fmt(%9.3f))) se(fmt(%9.2f)) legend label mtitle stats(N r2 bic, fmt(%9.0g))
    star(* 0.10 ** 0.05 *** 0.01) title ("Table 1")
    Table 1
    (1) (2) (3) (4) (5) (6)
    Model 1 Model 2 Model 3 Model 4 Model 5 Model 6
    b b b b b b
    L.Ln (AfD Popularity, %) 1.224*** 1.204*** 1.199***
    L2.Ln (AfD Popularity, %) -0.399*** -0.382*** -0.381***
    Inflation Misperceptions Index 0.002 0.002 -0.001 0.002
    ‚ñ≥Annualised CPI Inflation, Previous Month 0.010 0.005 0.015 -0.031 0.058 0.070
    GDP Index, Ratio-to-Trend -0.002 -0.017*** -0.016** 0.008 -0.078 -0.076
    Unemployment Rate, % -0.115*** -0.105*** -0.116*** 0.046 0.066 0.056
    Asylum Applications (000's) 0.002*** 0.001*** 0.002*** 0.007* 0.007*** 0.007*
    COVID-19 Pandemic Dummy Variable -0.008 -0.065*** -0.060*** -0.899*** -0.377** -0.369*
    Economic Misperceptions Index -0.015*** -0.015*** -0.150*** -0.149***
    L.‚ñ≥AfD Popularity, Previous Month 0.250*** 0.234*** 0.234***
    L.COVID-19 Pandemic Dummy Variable -0.853**
    L2.COVID-19 Pandemic Dummy Variable 1.891***
    Constant 0.696 3.987*** 3.642*** -0.966 22.351** 21.850**
    N 126 126 126 126 126 126
    r2
    bic . . . . . .
    * p < 0.10, ** p < 0.05, *** p < 0.01



    It has not pasted very well but as you can see the table, above, that results from the above command does not produce any standard errors in parentheses under the coefficients.

    Why might this be? Is there an error in the code?

    Thanks, Ethan

  • #2
    I'm not an -esttab- user myself, so I'm just making a guess here based on general Stata principles. I think the problem is that your -se()- option is outside the -cells()- option and needs to be inside it.

    Comment


    • #3
      Thanks Clyde, that has resolved it.

      Comment

      Working...
      X