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
Saving coefficients in a columnDear All, I estimate a spatial regression model and then I calculate the marginal impact of the reg…
Instrumental variableI am exploring the impact of social media WOM on firm performance during the 8 quarters of 2014-2015…
Combining Categorical VariablesHello, When I designed my survey for my research project I had a question that was repeated. Since …
Introducing kobo2stata (new on SSC)Dear Statalisters (and especially the Kobo users among you), I am pleased to announce that a new St…
Recall: The use of pweights with regressHello Statalisters, I have been searching for an answer to the following question: "Can anyone poin…
Subscribe to:
Post Comments (Atom)
0 Response to CMP command with two endogenous variables
Post a Comment