Dear All,
I run a RE model, where I want to include constants, which I constructed. Specifically, I run a piecewise regression model. Below is the code I am using:
One of the constant (int2) is dropped because of collinearity with the one included by default. My qyestion is whether I can drop _cons somehow. Obviously the option nocons does not work.
I have tried:
Any help would be gratly appreciated.
Best,
Dario
I run a RE model, where I want to include constants, which I constructed. Specifically, I run a piecewise regression model. Below is the code I am using:
Code:
generate polc1 = (pc - 6) replace polc1 = 0 if pc >= 6 generate polc2 = (pc - 6) replace polc2 = 0 if pc < 6 generate int1 = 1 replace int1 = 0 if pc >= 6 generate int2 = 1 replace int2 = 0 if pc < 6 xtreg y polc1 polc2 int1 int2 i.time, r
I have tried:
Code:
constraint define 1 _cons=int2 xtreg lnfdipccurr polc1 polc2 int1 i.time, r constraint(1) option constraint() not allowed
Best,
Dario
Comment