Can anyone help me on calculating the marginal effects conditional marginal effects for a multivariate probit model? As an illustration, let's take the following example.
This reports the marginal effect of the covariates on doctor and the marginal effect of the covariates on doctor conditional on hospital = 1. I've also manually calculated the conditional effects as the sum of the direct and indirect effect according to Green (1996) using the normal() and binormal() functions at the mean values.
Now I want to extend the model to a multivariate setting. I can recover the model parameters using something like mvprobit or cmp or using John Mullahy's bvpmp() mata function:
However, as it well known, neither command supports the recovery of the marginal or conditional effects in any case. What I'd like to do is a) recover the marginal effect of the covariates on the probability of any given outcome doctor=1 or hospital=1 or public=1, and b) recover the marginal effects of x conditional on a vector of other y outcomes, similar to pcond1 but allowing for say, hospital=1 and public = 0.
John Mullahy (2017) "Marginal effects in multivariate probit models" Empirical Economics, extends Green's results to the multivariate case, but I'm having extreme difficulty figuring out how to implement it. Has anyone successfully implemented the APEs or the conditional marginal effects from this paper? I'd be happy just getting manually calculating point estimates given the model parameters without trying to recover the standard errors.
Code:
clear insheet using "http://people.stern.nyu.edu/wgreene/Econometrics/healthcare.csv", comma biprobit (doctor = age female educ) (hospital = age female educ) margins, dydx(*) predict(pmarg1) atmeans margins, dydx(*) predict(pcond1) atmeans
Now I want to extend the model to a multivariate setting. I can recover the model parameters using something like mvprobit or cmp or using John Mullahy's bvpmp() mata function:
Code:
mvprobit (doctor = age female educ) (hospital = age female educ) (public = age female educ) *** cmp (doctor = age female educ) (hospital = age female educ) (public = age female educ), ind($cmp_probit $cmp_probit $cmp_probit) *** mata yn="doctor hospital public" xn="age female educ" bv1=bvpmvp(yn,xn,"",1,.001,1) end
John Mullahy (2017) "Marginal effects in multivariate probit models" Empirical Economics, extends Green's results to the multivariate case, but I'm having extreme difficulty figuring out how to implement it. Has anyone successfully implemented the APEs or the conditional marginal effects from this paper? I'd be happy just getting manually calculating point estimates given the model parameters without trying to recover the standard errors.
Comment