Dear all,
I am trying to save the margins effects instead of coefficients for several models using estout commands but it keeps saving the coefficients here is the commands i use:
quietly regress savingrate i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, robust
eststo margin: quietly margins, dydx(*)
estimates store m1, title(Model Regression)
quietly tobit savingrate i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, ll(0)
eststo margin: quietly margins, dydx(*) predict (ystar(0,.))
estimates store m2, title(Model Tobit)
quietly probit saving i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, nolog
eststo margin: quietly margins, dydx(*)
estimates store m3, title(Probit)
quietly truncreg savingrate i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, ll(0)
eststo margin: quietly margins, dydx(*) predict(e(0,.))
estimates store m4, title(Truncated)
esttab m1 m2 m3 m4 , cells(b(star fmt(3)) se(par fmt(2)))
esttab m1 m2 m3 m4 , cells(b(star fmt(3)) se(par fmt(2))) ///
legend label varlabels(_cons Constant)
esttab m1 m2 m3 m4 , cells(b(star fmt(3)) se(par fmt(2))) ///
legend label varlabels(_cons constant) ///
stats(r2 df_r bic)
esttab m1 m2 m3 m4 using final8.txt, cells(b(star fmt(3)) se(par fmt(2))) delim("&") ///
legend label varlabels(_cons constant) ///
stats(r2 df_r bic, fmt(3 0 1) label(R-sqr dfres BIC))
I am trying to save the margins effects instead of coefficients for several models using estout commands but it keeps saving the coefficients here is the commands i use:
quietly regress savingrate i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, robust
eststo margin: quietly margins, dydx(*)
estimates store m1, title(Model Regression)
quietly tobit savingrate i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, ll(0)
eststo margin: quietly margins, dydx(*) predict (ystar(0,.))
estimates store m2, title(Model Tobit)
quietly probit saving i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, nolog
eststo margin: quietly margins, dydx(*)
estimates store m3, title(Probit)
quietly truncreg savingrate i.age_group agesq logincome rururb female dependancy hnum earn married i.education i.employment i.occhd if year==2010, ll(0)
eststo margin: quietly margins, dydx(*) predict(e(0,.))
estimates store m4, title(Truncated)
esttab m1 m2 m3 m4 , cells(b(star fmt(3)) se(par fmt(2)))
esttab m1 m2 m3 m4 , cells(b(star fmt(3)) se(par fmt(2))) ///
legend label varlabels(_cons Constant)
esttab m1 m2 m3 m4 , cells(b(star fmt(3)) se(par fmt(2))) ///
legend label varlabels(_cons constant) ///
stats(r2 df_r bic)
esttab m1 m2 m3 m4 using final8.txt, cells(b(star fmt(3)) se(par fmt(2))) delim("&") ///
legend label varlabels(_cons constant) ///
stats(r2 df_r bic, fmt(3 0 1) label(R-sqr dfres BIC))
Comment