Announcement

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

  • Estate - Booktabs, Refcat Rename not working together

    I'm running a bunch of regressions in which there are different measures of the same concept and I want to add some reference categories. If I only run the first part of my esttab:
    esttab using "casesregs.tex", se compress ////
    label replace booktabs nodep nolines nonumbers title(Regressions of cases on explanatory variables\label{casesregs})

    I get a nice table with book tabs but when I add rename or refcat suddenly my \toprule, etc. disappears from the table (see code below). Is there something to know about running these options together? TIA!!

    esttab using "casesregs.tex", se compress ////
    label replace booktabs nodep nolines nonumbers title(Regressions of cases on explanatory variables\label{casesregs}) ////
    refcat(lwbstocksin_full "\textbf{Migraiton (SS $\rightarrow$ RS)}" vdem_civlib_2_l10mean ////
    "\textbf{Atrocities (SS)}" polity_s_1 "\textbf{Responsiveness (RS)}" lgdpcap_1 "\textbf{Cost (RS)}" icc_trib "\textbf{Controls}", nolabel) ////
    order(lwbstocksin_full $atroc20main $respon2 $cost $controls ) ////
    mgroups("Dyads" "Alternative Dyads", pattern(1 0 0 1 0 0) ///
    prefix(\multicolumn{@span}{c}{) suffix(}) ///
    span erepeat(\cmidrule(lr){@span})) alignment(D{.}{.}{-1}) nonumber ////
    drop(dd_contig* alt_dd_contig* yrsinc*) ////
    addnote("Contiguity indicators and, in logit regressions, years since 1957 and its square and cube included but not shown.") ////
    mtitles("OLS" "OLS" "Logit" "OLS" "OLS" "Logit") ////
    rename(alt_lwbstocksin_full lwbstocksin_full ////
    alt_vdem_repression_2_l20mean vdem_repression_2_l20mean ////
    alt_polity_s_2_l20mean polity_s_2_l20mean ////
    alt_ucdp_civwarb_2_l20any ucdp_civwarb_2_l20any ////
    alt_lgdpcap_2 lgdpcap_2 ////
    alt_limports limports ////
    alt_lexports lexports ////
    alt_alliance alliance ////
    alt_langshare langshare ////
    alt_d_colony2 d_colony2 ////
    alt_ldist2 ldist2) nolines

  • #2
    estout/ esttab is from Stata Journal. estout options disable esttab options (note that esttab is just a wrapper for estout and options of the latter take precedence over options of the former). Here, -refcat- is an estout option whreas -booktabs- is an esttab option. Confused? See

    Code:
    help estout
    help esttab

    Comment

    Working...
    X