Hello,
We are running an ordered IV-probit model. We have two endogenous regressors so we will need to use two IVs. The command that we are using is as follows:
cmp setup
cmp (Y = X1 X2 `Xvars') (X1 X2 = IV1 IV2 `Xvars' ), indicators($cmp_oprobit $cmp_cont) vce(cluster state)
On running this we get an error:
X1X2 not found
invalid syntax
r(111);
Somehow the code does not recognize the space between the two endogenous X's and treats them as one single var.
It would be very helpful if you point us to the error in the code. Should we use three brackets instead of two?
Related Posts with CMP command with two endogenous variables
To count observations based on another variablesHello everyone, I have tried to find a way to know how many candidates repeat and don't repeat in t…
How to drop observations in panel data based on the values of a variableHow to drop observations based on the values of a variable in longitudinal data? For example, I want…
Unbalanced data; Does it have anything to do with dummy variables?Hi, I'm fairly new to stata, and have just uploaded panel data; 8 countries of 8 years. 3 of my vari…
2 unit increase confidence intervalHey, So I set up a 90 percent confidence interval. My current Stata command "ci means course_eval …
Reporting mean values by the decilesHello, dear community! These days I am working on my master thesis on Leverage effect to the future…
Subscribe to:
Post Comments (Atom)
0 Response to CMP command with two endogenous variables
Post a Comment