Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: stata code for two-part model


From   "Shehzad Ali" <sia500@york.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: stata code for two-part model
Date   Sat, 16 Aug 2008 04:01:19 +0100

Hi,

I was wondering if someone can help with stata code for calculating marginal
effects after two-part models for say, cost of care. Here, first part is a
probit model for seeking care or not, and the second part is an OLS model of
cost of care, conditional on decision to seek care. Here is the simplified
code:

probit care $xvar

reg cost $zvar if care==1

mfx

I understand that mfx after the second part gives us the marginal effects
for the OLS part only, and not the conditional marginal effects.

Any help would be appreciated.

Thanks,

Shehzad

Shehzad Ali
Department of Social Policy & Social Work
University of York
Heslington
YO10 5DD

Tel: *44 (0) 773 813 0094
Email: sia500@york.ac.uk 


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index