Announcement

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

  • Problem with esttab and estpost, exporting to latex

    Hello all,

    I am trying to export my tabstat table to Latex, however, my code only generates an almost empty table in latex with N in it

    ​​​​​​Here is my code:

    eststo clear
    eststo: estpost tabstat school_att mom_col pop_col if age<19, by(nsibs) stat(mean)
    esttab . using "myfilex.tex", cells("count mean") replace

    thank you all

  • #2
    You have the wrong names in the cells() option. This is covered in the estout website tabstat example. I find a good strategy for solving such problems is to see if there is an example on that site that uses the command that I am struggling with.

    Here's a working reproducible example:

    Code:
    sysuse auto, clear
    estpost tabstat price mpg, by(rep78) stat(mean)
    esttab . using "myfilex.tex", cells("price mpg") replace

    Comment

    Working...
    X