Statalist


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

st: stata code for two-part model


From   "Shehzad Ali" <[email protected]>
To   <[email protected]>
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: [email protected] 


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