I am new to the cmp command, and I am not sure how to use it in Stata, given that outcome variables may differ, and each equation correct for a different selection bias... Below is the model I would like to estimate:
SE = a1 + b1(individual-level controls) + c1(household-level controls) + d1(location-level controls) + e1(ZSE) + f1(BS) + g1(R) + errors1 (SE is binary)
BS = a2 + b2(Individual-level controls) + c2(ZBS) + d2(R) + errors2 (BS is continuous)
R = a3 + b3(Individual-level controls) + c3(ZR) + errors3 (R is binary)
Given the structure of this model, I thought the best would be to use Stata's cmp command, is this correct?
cmp (se = r bs $individual $household $location $zse) (bs = r $individual zbs) (r = $individual zr), ind($cmp_probit $cmp_cont $cmp_probit)
Would this be the correct code?
I then would like to obtain average marginal effects of these different equations:
margins, dydx(*) force
Would this be correct?
Eventually, I would like to compute the full effect of R on SE, that is dSE/dR = dSE/dR + dBS/dR
To do so, should I compute:
f1*d2 + g1
Or
AME of f1*AME of d2 + AME of g1?
Thanks a lot for your help.
SE = a1 + b1(individual-level controls) + c1(household-level controls) + d1(location-level controls) + e1(ZSE) + f1(BS) + g1(R) + errors1 (SE is binary)
BS = a2 + b2(Individual-level controls) + c2(ZBS) + d2(R) + errors2 (BS is continuous)
R = a3 + b3(Individual-level controls) + c3(ZR) + errors3 (R is binary)
Given the structure of this model, I thought the best would be to use Stata's cmp command, is this correct?
cmp (se = r bs $individual $household $location $zse) (bs = r $individual zbs) (r = $individual zr), ind($cmp_probit $cmp_cont $cmp_probit)
Would this be the correct code?
I then would like to obtain average marginal effects of these different equations:
margins, dydx(*) force
Would this be correct?
Eventually, I would like to compute the full effect of R on SE, that is dSE/dR = dSE/dR + dBS/dR
To do so, should I compute:
f1*d2 + g1
Or
AME of f1*AME of d2 + AME of g1?
Thanks a lot for your help.
Comment