Announcement

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

  • unable to export mean and sd using tabstat

    Hello,

    I am using the below code to export my descriptive statistics. All is good except that I get an empty column for mean and sd. Can anyone please let me know what I have missed in the code?

    estpost tabstat ABWC Restate_dummy GC_dummy if BIG4 == 0, stat(N mean p25 median p75 sd) col(stat)
    esttab . using Descriptives.rtf, cells("count mean(fmt(a2)) p25(fmt(a2)) p50(fmt(a2)) p75(fmt(a2)) sd(fmt(a2))") append

    Thank you so much!

  • #2
    Why not just use the collect syntax Stata's developed?

    EDIT: I'm not saying there's no solution, but, estpost and its cousins are pretty old now. Not everyone has them (some prefer outreg, for example), and assuming you have 17, using the formalized StataCorp solution is likely just much better than estpost.
    Last edited by Jared Greathouse; 24 Apr 2023, 07:50.

    Comment

    Working...
    X