Hello,
I am trying to run an xtivreg with an endogenous categorical variable with the following code:
where:
y: continuous dep. var.
x1...x_n: exogenous variables
z1 z2: continuous instruments
i.qincome: endogenous categorical variable (income quartile)
When I try without the xi prefix, it gives a new error.
Is there a way to solve this please?
I am trying to run an xtivreg with an endogenous categorical variable with the following code:
Code:
xi: xtivreg y x1 x2 ...x_n (i.qincome =z1 z2) equation not identified; must have at least as many instruments not in the regression as there are instrumented variables r(481);
y: continuous dep. var.
x1...x_n: exogenous variables
z1 z2: continuous instruments
i.qincome: endogenous categorical variable (income quartile)
When I try without the xi prefix, it gives a new error.
Code:
xtivreg y x1 x2 ...x_n (i.qincome =z1 z2) depvars may not be factor variables r(198);
Comment