Announcement

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

  • mlabels interfering with mtitles in eststo

    I'm trying to create a regression table with labeled columns ("Title A" and "Title B") as well as something that says "Dependent Variable" on the left hand side of the table. However, I can only get one of these to work at a time, and I'm not sure what I'm doing wrong.

    If I include `mlabels`, then I only see the "Dependent Variable" heading, and neither of the column titles:

    sysuse auto, clear
    capt which estout
    if _rc ssc inst estout
    eststo: quietly reg mpg price i.foreign
    eststo: quietly reg trunk price i.foreign
    esttab, label mtitles("Title A" "Title B") mlabels(, lhs("Dependent Variable"))
    est clear
    eststo clear

    But obviously if I take out `mlabels`, I get the column titles but not the "Dependent Variable" header. What am I doing wrong?

  • #2
    Is this what you want?
    Code:
    esttab, label mlabels("Title A" "Title B" , lhs("Dependent Variable"))
    The problem is that mtitles is an -esttab- option while -mlabels- is an esttout option, but in the end the first is just a wrapper for the latter.

    See:
    http://repec.org/bocode/e/estout/hlp_esttab.html

    "estout_options are any other estout options (see help estout). Note that estout options take precedence over esttab options
    ... Other estout options that should be used with care are ... mlabels(), and varlabels()."

    Best,
    S

    Comment

    Working...
    X