Dear all,
I am trying to estimate a model that explains farmers' decision to start keeping hogs. There are three different alternatives: farmers that don't change anything about their farms, farmers who start keeping hogs (entry), farmers who leave the agricultural sector / the dataset (exit).
I started to use a mlogit and mprobit, but the IIA is violated (Hausman and Suest Test). I don't have any alternative specific variables; therefore, i decided to use cmp and mprobit instead of asmprobit.
The first step works fine (estimating the probabilities with mprobit and cmp), but i can't figure out the right command structure to estimate a second linear model explaining the amount of hogs the farmers in the entry group start keeping. Does anyone know what is wrong with my command line? Is it possible to perform a two step heckman approach using cmp and a multinominal probit?
Command line:
cmp (v2003Reg =vHHI_bj2003 vEmz_bj2003 vLF_bj2003 vDGL_Anteil_bj2003 vGVEha_bj2003 vAgrarbildung_bj2003 vAlter_bj2003 vFamAK_bj2003 vZinssatz_bj2003 vOrErg_AK_bj2003 vASKKD2003Stufen Viehdichte_gvha_2003 v2003BIP bevdichte_10km_2003 vSauenD_bj2003 vFerkelD_bj2003 vKuheD_bj2003 ) (Einstieg2003 = vHHI_bj2003 vEmz_bj2003 vLF_bj2003 vDGL_Anteil_bj2003 vGVEha_bj2003 vAgrarbildung_bj2003 vAlter_bj2003 vFamAK_bj2003 vZinssatz_bj2003 vOrErg_AK_bj2003 vASKKD2003Stufen Viehdichte_gvha_2003 v2003BIP bevdichte_10km_2003 vSauenD_bj2003 vFerkelD_bj2003 vKuheD_bj2003), ind(v2003Reg*$cmp_mprobit Einstieg2003*$cmp_ivregress) nodrop nonrtolerance
Error message:
Indicator for v2003Reg must only evaluate to integers between 0 and 10. invalid syntax
r(198);
Does anyone know what the right syntax structure for mprobit is? Can I use the two step Heckamnn correction with mprobit and cmp? I tried quite a lot of different alternatives.
Regards Insa
I am trying to estimate a model that explains farmers' decision to start keeping hogs. There are three different alternatives: farmers that don't change anything about their farms, farmers who start keeping hogs (entry), farmers who leave the agricultural sector / the dataset (exit).
I started to use a mlogit and mprobit, but the IIA is violated (Hausman and Suest Test). I don't have any alternative specific variables; therefore, i decided to use cmp and mprobit instead of asmprobit.
The first step works fine (estimating the probabilities with mprobit and cmp), but i can't figure out the right command structure to estimate a second linear model explaining the amount of hogs the farmers in the entry group start keeping. Does anyone know what is wrong with my command line? Is it possible to perform a two step heckman approach using cmp and a multinominal probit?
Command line:
cmp (v2003Reg =vHHI_bj2003 vEmz_bj2003 vLF_bj2003 vDGL_Anteil_bj2003 vGVEha_bj2003 vAgrarbildung_bj2003 vAlter_bj2003 vFamAK_bj2003 vZinssatz_bj2003 vOrErg_AK_bj2003 vASKKD2003Stufen Viehdichte_gvha_2003 v2003BIP bevdichte_10km_2003 vSauenD_bj2003 vFerkelD_bj2003 vKuheD_bj2003 ) (Einstieg2003 = vHHI_bj2003 vEmz_bj2003 vLF_bj2003 vDGL_Anteil_bj2003 vGVEha_bj2003 vAgrarbildung_bj2003 vAlter_bj2003 vFamAK_bj2003 vZinssatz_bj2003 vOrErg_AK_bj2003 vASKKD2003Stufen Viehdichte_gvha_2003 v2003BIP bevdichte_10km_2003 vSauenD_bj2003 vFerkelD_bj2003 vKuheD_bj2003), ind(v2003Reg*$cmp_mprobit Einstieg2003*$cmp_ivregress) nodrop nonrtolerance
Error message:
Indicator for v2003Reg must only evaluate to integers between 0 and 10. invalid syntax
r(198);
Does anyone know what the right syntax structure for mprobit is? Can I use the two step Heckamnn correction with mprobit and cmp? I tried quite a lot of different alternatives.
Regards Insa
Comment