Hello,
I am modeling a variable whose value should depend on a function of its lagged cumulative sum.
Does regressing x on c @cumsum(x(-1)) behave the way I want it to, that is, are predicted values of x summed up, when forecasting?
-James
using @cumsum(x(-1) in a regression/forecast model for x
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: using @cumsum(x(-1) in a regression/forecast model for x
No, the actual values of x, added up, are used for forecasting.
Re: using @cumsum(x(-1) in a regression/forecast model for x
I was worried that would be the case. Do you have any ideas on how I can add up and use the predicted values as the forecast rolls ahead?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: using @cumsum(x(-1) in a regression/forecast model for x
I missed something. You said that the left hand side variable is x. In that case a dynamic forecast may in fact do what you want. You might want to try out a simple example to see what happens.
(Either that or hope Gareth or Glenn intervene
)
(Either that or hope Gareth or Glenn intervene
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: using @cumsum(x(-1) in a regression/forecast model for x
Startz's first answer is correct - the actual values will be added up, I believe. I don't think the forecast engine knows what to do with @cumsum.
The only work around is to create a model and solve the model over the forecast period. The model would look something like this:
where Y is a temporary series you've created in the workfile, and c(1) and c(2) are the coefficients from your equation (you can just type the values in manually)
The only work around is to create a model and solve the model over the forecast period. The model would look something like this:
Code: Select all
y=@cumsum(x(-1))
x = c(1)+c(2)*y
Who is online
Users browsing this forum: No registered users and 2 guests
