Announcement

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

  • estout detail not working

    Hi all,

    I am not sure what I am doing wrong here. For some reason my latex table only shows the statistics for the mean, but shows all blanks for the 25, 50, 75th percentiles. When I run summarize, I can see that it prints these values out correctly. Not sure why htey aren't populating into the table. TIA

    Code:
    preserve
    keep if change_rate==1
    estpost summarize diff_rate rate_perc, detail
    eststo all
    
    estpost summarize diff_rate rate_perc if inpatient == 1, detail
    eststo inpatient
    
    estpost summarize diff_rate rate_perc if inpatient == 0, detail
    eststo outpatient
    
    esttab all inpatient outpatient using descriptive_table.tex, replace ///
      stats(mean p50 p25 p75, labels("Mean" "Median" "25th Percentile" "75th Percentile")) ///
      nonumbers booktabs label ///
      mlabels("All" "Inpatient" "Outpatient") collabels(none) ///
      cells("mean(fmt(2)) p50(fmt(2)) p25(fmt(2)) p75(fmt(2))")
      restore)

  • #2
    estout is from SSC, as you are asked to explain in FAQ Advice #12. You achieve better outcomes with reproducible examples.

    Comment

    Working...
    X