How to re-use forecasted data
Posted: Tue Aug 05, 2014 1:27 am
I am trying to give stepwise exogenous shocks to my forecast, but when I try to forecast in steps, EViews simply forgets the previous forecast. I estimated a VECM (quarterly data from 1985:1 untill 2013:4) and when I try to solve it like this, it works just like it should:
model.scenario(c) "baseline"
smpl 2014:1 2024
model.solve(s=d)
However, the following alternative scenario does not seem to do what I want:
model.scenario(n,a=2) "alternative"
smpl 2014:1 2014:1
model.solve(s=d) first I solve for only one point ahead, the values of the variables in 2014:1 are the same as in the baseline scenario
genr s_sa=s_sa*0.98 here a shock is given to one of the variables, if run untill this line all variables have one extra data point, with one having a shock in 2014:1
smpl 2014:2 2015:1 Here, I set the working sample such that it can be solved up untill 2015:1. The idea is that it uses the previous forecast, including the shock, as the 2014:1 point
model.solve(s=d) Here, the program fails to solve the model, because the 2014:1 data points have disappeard and have become NA's
smpl 2015:1 2015:1
genr s_sa=s_sa*0.98
smpl 2015:2 2016:1
model.solve(s=d)
.
.
etc.
smpl @all
I think the idea of what I try to do is clear, but my understanding of EViews is not enough to get it to work. Does anyone here know how I can make this work? Help would be appreciated!
model.scenario(c) "baseline"
smpl 2014:1 2024
model.solve(s=d)
However, the following alternative scenario does not seem to do what I want:
model.scenario(n,a=2) "alternative"
smpl 2014:1 2014:1
model.solve(s=d) first I solve for only one point ahead, the values of the variables in 2014:1 are the same as in the baseline scenario
genr s_sa=s_sa*0.98 here a shock is given to one of the variables, if run untill this line all variables have one extra data point, with one having a shock in 2014:1
smpl 2014:2 2015:1 Here, I set the working sample such that it can be solved up untill 2015:1. The idea is that it uses the previous forecast, including the shock, as the 2014:1 point
model.solve(s=d) Here, the program fails to solve the model, because the 2014:1 data points have disappeard and have become NA's
smpl 2015:1 2015:1
genr s_sa=s_sa*0.98
smpl 2015:2 2016:1
model.solve(s=d)
.
.
etc.
smpl @all
I think the idea of what I try to do is clear, but my understanding of EViews is not enough to get it to work. Does anyone here know how I can make this work? Help would be appreciated!