Page 1 of 1

Constrained Coefficients

Posted: Thu Mar 11, 2021 6:42 pm
by Laurel
How do I perform forecast evaluation if some of the coefficients must equal one?
For example, how to do forecast evaluation for these two models:

y = c(1)y(-1)
y = c(2)y(-1) + c(3)x1 + c(4)x2
with the condition that c(3) and c(4) are both equal to one, i.e. c(3)=c(4)=1?

Thanks!

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 7:11 pm
by EViews Gareth
Question is a little vague.

Forecast evaluation has nothing to do with whether the coefficients are constrained or not.

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 7:27 pm
by Laurel
Ok. To clarify, I have time series data y, x1, and x2. How do I estimate

y = c(1) + c(2)y(-1) + c(3)x1 + c(4)x2

with the condition that c(3) and c(4) are both equal to one, i.e. c(3)=c(4)=1?

Thanks!

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 7:44 pm
by EViews Gareth

Code: Select all

ls Y=c(1) + c(2)*Y(-1) + c(3)*X1 + (1-c(3))*X2

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 7:51 pm
by Laurel
I mean c(3)=1 and c(4)=1, not c(3)+c(4)=1. Thanks.

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 8:10 pm
by EViews Gareth
Ah, sorry I misread.

Code: Select all

ls Y=c(1) + c(2)*Y(-1) + X1 + X2

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 8:20 pm
by Laurel
How exactly do I type that onto the command window without Eviews computing the coefficients for c3 and c4?

Code: Select all

ls y c y(-1) x1 x2
Thanks!

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 8:25 pm
by EViews Gareth
Just what I put in.

Re: Forecast Evaluation with Constrained Coefficients

Posted: Thu Mar 11, 2021 8:30 pm
by Laurel
Ah, that worked. Thank you so much :)