would be appreciated
Code:
capture program drop emargins_mlogit0
program emargins_mlogit0, eclass properties(mi)
version 15
args var
mlogit mortality26_43 `var' sex, rrr
eststo margin1: margins, dydx(*) predict(pr) post
end
foreach var of varlist f_ses m_edu ownedu housing {
mi estimate, post dots cmdok: emargins_mlogit0 `var'
esttab margin1 using "margins_ses.txt", ///
cells(`"b(fmt(%9.3f) ) ci_l ci_u p (fmt(3))"') stats() modelwidth(20) ///
plain nolabel nogaps varwidth (15) nolines compress append nolabel ///
collabels("") nocons
}
0 Response to esttab producing wrong estimates for imputed margins
Post a Comment