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
Chamberlain Moment Conditions and endogenous X in dynamic Poisson modelHello good people, I am dealing with the following Linear Feedback Model: y_{it} = a*y_{it-1} + e…
Question about the command --tuples--Dear all, I get an error when I run the command --tuples--(SSC). sysuse auto,clear global m mpg rep…
Plot mean and standard deviation by time, for two groups on the same figureI am trying to plot the time series of mean and standard deviation of a variable, for 2 different gr…
robust standard errors by two-way cluster-robustI want to calculate a two way cluster by robust standard error of a regression on stata I need the c…
Regressions with 'long'/panel data: misleading test statistics?Greetings, I'm running Stata 15.1 on a Mac OS and am currently working with Pew panel data. I belie…
Subscribe to:
Post Comments (Atom)
0 Response to CMP command with two endogenous variables
Post a Comment