Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: estadd margins with multiple outcome models


From   Cameron McIntosh <[email protected]>
To   STATA LIST <[email protected]>
Subject   RE: st: estadd margins with multiple outcome models
Date   Sun, 11 Sep 2011 21:45:38 -0400

Hi Arka,
Before you proceed further, have you checked to see whether your data meet the proportional odds assumption? If not, you may want to consider some other options:
Kjellsson, M.C., Zingmark, P.-H., Jonsson, E.N., & Karlsson, M.O. (2008). Comparison of proportional and differential odds models for mixed-effects analysis of categorical data. Journal of Pharmacokinetics and Pharmacodynamics, 35(5), 483-501.
Williams, R. (2006). Generalized ordered logit/partial proportional odds models for ordinal dependent variables. The Stata Journal, 6(1), 58–82.
Cam
> From: [email protected]
> Date: Sun, 11 Sep 2011 18:18:04 -0700
> Subject: st: estadd margins with multiple outcome models
> To: [email protected]
> 
> Dear Statalisters,
> 
> I am using Stata 11 on a 64 bit Windows Vista computer.I am estimating
> an ordered probit model of the effect of gender on education.My
> education variable is a categorical variable with three categories 1,2
> and 3. Sex is a dummy variable which takes the value of 1 if male and
> 0 otherwise.So I run the following regression:
> oprobit edu i.sex [pweight=weight],robust
> 
> Now what I need is a table with the marginal effects  for each
> education outcome  with their standard errors. I usually use -esttab-
> to get tables. This is where I run into difficulty. I run  the
> folowing after the oprobit command :
> estadd margins,dydx(sex) predict(outcome(1)
> estadd margins,dydx(sex) predict(outcome(2)
> estadd margins,dydx(sex) predict(outcome(3)
>  But I can not figure out how to store these results by different
> names so that I can make tables using esttab since estimates store
> does not seem to work.
> 
> Basically I want to replicate the output from the following set of
> commands by using margins since mfx is now obsolete in Stata 11.
> 
> oprobit edu sex [pweight=weight],robust
> mfx compute,predict(outcome(1))
> estimates store model1
> mfx compute,predict(outcome(2))
> estimates store model2
> mfx compute,predict(outcome(3))
> estimates store model3
> esttab model1 model2 model3,se star(*0.10 **0.05 ***0.01) margin
> 
> 
> I would really appreciate any help in this regard.
> 
> Regards,
> Arka
> 
> References: Jann, Ben "Estout:Stata modele to make regression tables"
> (http://ideas.repec.org/c/boc/bocode/s439301.html)
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index