mfx option can be used to report marginal effects after mfx command has been applied.
sysuse auto, clear
logit foreign mpg rep78 head
mfx compute
outreg2 using myfile, replace
outreg2 using myfile, mfx ctitle(mfx) see
margins will report it as well.
sysuse auto, clear
logit foreign mpg rep78 head
margins, dydx(_all) post
outreg2 using myfile, ctitle(margins) see
For multiple outcomes, you may want to use mfx2 by Ricahrd Williams or margeff by Tamas Bartus. They are both
available from ssc.
margeff example:
sysuse auto, clear
mlogit rep turn mpg price
margeff, at(mean) replace
outreg2 using myfile, cttop(margeff) see replace
mfx2 runs a little slower:
sysuse auto, clear
mlogit rep turn mpg price
mfx2, replace
outreg2 using myfile, long cttop(mfx2) see replace
The marginal effects reported by dprobit, dlogit2, dprobit2, and dmlogit2 are automatically reported by
outreg2.
Because truncreg, marginal, and dtobit report both regression coefficients and marginal effects, the user
must specify the margin option for outreg2 report the marginal effects.
dtobit, on the other hand, calculates three different marginal effects. The user must specify which marginal
effect, the unconditional, conditional, or the probability uncensored, to be reported. Note that "version 6"
must be set for dtobit to work.
version 6: tobit mpg trunk weight, ll(17)
version 6: dtobit
outreg2 using myfile, margin(u) ctitle(Unconditional) nor2 replace
outreg2 using myfile, margin(c) ctitle(Conditional) nor2
outreg2 using myfile, margin(p) ctitle(Probability) nor2 see