Announcement

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

  • esttab change variable names

    Hello Everyone

    I am using esttab as below to output some regression results into a Latex table.

    esttab using "mutual_fund_regression.tex", replace ///
    b(3) se(3) ///
    keep(retpos retneg absret ret retxd3 D3) ///
    /*star(* 0.10 ** 0.05 *** 0.01)*/ ///
    label noobs nonotes nomtitle collabels(none) mgroups("Proportion Sold" "Proportion Bought", pattern(1 0 1 0 1 0) ///
    prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})) /*alignment(D{.}{.}{-1})*/ ///
    stats(N r2 Fundxdate Stockxyear Stockxdate ,fmt(%9.0fc %9.3f) labels(Observations \$R^2$ "Fund $\times$ Date F.E." "Stock $\times$ year F.E." "Stock $\times$ date F.E."))

    I would like to change the variable names/labels within esttab, so that retpos comes out in the table as $Ret^+$ (in Latex the word Ret with a superscript of the plus sign).

    Any help would be much appreciated, thank you!

    Costas

  • #2
    See the -coeflabel()- option in

    Code:
    help estout
    Help us help you with reproducible examples. See FAQ Advice #12 for details.

    Comment

    Working...
    X