I am trying to figure out how the cmp program exactly works.
However, I do not seem to manage to obtain the basic model and I don't know where it goes wrong.
My model is:
I thought the STATA code should be this:
Equation croptype_dummy not found.
invalid syntax
error . . . . . . . . . . . . . . . . . . . . . . . . Return code 111
__________ not found;
no variables defined;
The variable does not exist. You may have mistyped the
variable's name.
variables out of order;
You specified a varlist containing varname1-varname2, yet
varname1 occurs after varname2. Reverse the order of the
variables if you did not make some other typographical error.
Remember, varname1-varname2 is taken by Stata to mean varname1,
varname2, and all the variables in dataset order in between.
Type describe to see the order of the variables in your dataset.
__________ not found in using data;
You specified a varlist with merge, but the variables on which
you wish to merge are not found in the using dataset, so the
merge is not possible.
__________ ambiguous abbreviation;
You typed an ambiguous abbreviation for a variable in your data.
The abbreviation could refer to more than one variable. Use a
nonambiguous abbreviation, or if you intend all the variables
implied by the ambiguous abbreviation, append a `*' to the end
of the abbreviation.
However, I do not seem to manage to obtain the basic model and I don't know where it goes wrong.
My model is:
- irrigation_dummy = croptype_dummy + ps1 + ps2+ps3 + ps4
- croptype_dummy = irrigation_dummy + ps1 + ps2+ps3 + ps4
I thought the STATA code should be this:
cmp (irrigation_dummy =croptype_dummy# ps1 ps2 ps3 ps4) (croptype_dummy = irrigation_dummy# ps1 ps2 ps3 ps4), indicators($cmp_probit $cmp_mprobit) qui tech(dfp)But it does not work. The error I get is the one below. But I am very sure that the spelling of my variables is correct, so I do not know what I do wrong.
Equation croptype_dummy not found.
invalid syntax
error . . . . . . . . . . . . . . . . . . . . . . . . Return code 111
__________ not found;
no variables defined;
The variable does not exist. You may have mistyped the
variable's name.
variables out of order;
You specified a varlist containing varname1-varname2, yet
varname1 occurs after varname2. Reverse the order of the
variables if you did not make some other typographical error.
Remember, varname1-varname2 is taken by Stata to mean varname1,
varname2, and all the variables in dataset order in between.
Type describe to see the order of the variables in your dataset.
__________ not found in using data;
You specified a varlist with merge, but the variables on which
you wish to merge are not found in the using dataset, so the
merge is not possible.
__________ ambiguous abbreviation;
You typed an ambiguous abbreviation for a variable in your data.
The abbreviation could refer to more than one variable. Use a
nonambiguous abbreviation, or if you intend all the variables
implied by the ambiguous abbreviation, append a `*' to the end
of the abbreviation.
Comment