Announcement

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

  • problem with etable

    I am trying to create a column of four separate models using etable with a different outcome and the same predictors. However, I am getting duplicate rows of the predictors for each model. I'm guessing I'm at the limit of what etable can do? Can collect more generally help with this?

    Code:
    etable, estimates(Model1 Model2 Model3 Model4 Model5) ///
             keep (i.status i.region i.regionbr sex_abbrev i.educ_abbrev i.agecat i.yrsinusg_abbrev) ///
             column(estimates) ///
             cstat(_r_b, nformat(%4.2f)) ///
             cstat(_r_ci, cidelimiter(,) nformat(%6.2f)) ///
             showstars showstarsnote ///
             stars(.05 "*" .01 "**" .001 "***", attach(_r_b)) ///
             mstat(N,   nformat(%8.0fc) label("Observations")) ///
             mstat(r2_p, nformat(%5.4f) label("Pseudo R2")) ///
             title(Table 1: Health Outcomes for Black Individuals, by Legal Status) ///
             titlestyles(font(Calibri, size(14) bold)) ///
             export(results_table_race2.docx, replace)

  • #2
    See etable's documentation for options showeq and eqrecode.

    Comment


    • #3
      Beautiful! it works. (all else passing by, see this for an example: Custom estimation tables (stata.com).

      Quick random question, if I'm exporting the table, is there any way to suppress table output made in Stata directly?

      Comment


      • #4
        Try the quietly prefix.

        Comment

        Working...
        X