Announcement

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

  • How can I change the column headings of two unique regressions on esttab output?

    Hi.
    I ran an LPM regression, then a probit, and I used esttab to export them to Word, putting the partial effects output next to the LPM. Now I'm trying to change the column headings from the label of the dependent variable $dep to "LPM" and "Probit partial effects" respectively. Please help me to do this.

    MWE:
    Code:
    eststo, title(LPM): reg $dep  female age age2 primary secondary tertiary [pweight=w4_wgt], robust
    
    probit $dep  female age age2 primary secondary tertiary [pweight=w4_wgt]
    esttab using "Probit regression.rtf", replace title(Probit regression) label eqlabels(none)
    
    eststo, title(Probit partial effects): mfx // can also use -dprobit-. This is the marginal (or partial) effects.
    
    esttab using "OLS and probit partial effects regressions.rtf", title(OLS and probit partial effects regressions) label replace margin eqlabels(none)

  • #2
    You should be using -margins- instead of -mfx-, which is a bit outdated. Try something like this:

    Code:
    sysuse auto, clear
    replace price = price/1000
    estimates clear
    eststo, title(LPM): reg foreign price
    probit foreign price
    eststo, title(Probit AME): margins, dydx(price) post 
    
    esttab, title(OLS and probit partial effects regressions) label replace margin eqlabels(none) mtitles

    Comment

    Working...
    X