- Code: Select all
System(model=dvar)
variables dx dy
lags 1 to 4
det constant
end(system)
estimate * 2011:1
forecast(model=dvar,from=2011:2,to=2012:3,result=forecast,stderrs=s,print)
When I restrict the time series by a few periods for the in sample forecast I am able to to convert the differenced forecast to levels with the following code:
- Code: Select all
set xforecast = forecast(1) + x{1}
But when I run the Var model on the full data series I am unable to convert the differenced forecasts by using the above formula. Below is the code for the Var over the full series. How could I convert my differenced forecast into levels?
- Code: Select all
System(model=dvar)
variables dx dy
lags 1 to 4
det constant
end(system)
estimate
forecast(model=dvar,from=2012:3,to=2016:4,result=forecast,stderrs=s,print)
How could I convert my differenced forecast into levels?
Thanks in advance
