Announcement

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

  • Exporting results from -estat sum- to LaTeX

    Hello All

    I'm trying to export summary statistics from -estat sum- command into LaTeX using user written -esttab- (ssc install esttab).
    Code:
    estat sum
    est store e1
    esttab e1 using stats.tex, tex replace
    However, this gives me just the sample size in the table. Does anyone know the syntax to handle this?

  • #2
    estat sum returns the results in r(stats), so you could do something like this.
    Code:
    estat sum
    mat stats = r(stats)
    esttab matrix(stats)

    Comment


    • #3
      Thank you, this worked perfectly!

      Comment

      Working...
      X