Hi, I want to fit a polynomial model (>4 degrees) to the data. However, I need to impose some restrictions on the fitted model. In my data, the independent variable (x) moves continuously between 0 and 2. I need to impose two restrictions: (i) f(0)=0, and (ii) f(2)=0, where f() is the estimated polynomial function.
In stata, when estimating the model with regress command, the first restriction can be achieved with the nocons option. But how can I impose the second restriction when using the regress command?
Thanks in advance for your suggestions.
Regards,
Jorge
In stata, when estimating the model with regress command, the first restriction can be achieved with the nocons option. But how can I impose the second restriction when using the regress command?
Thanks in advance for your suggestions.
Regards,
Jorge
Comment