Conditional forecasts using VAR
Posted: Wed Mar 18, 2015 5:03 am
Hello,
I was trying to compute conditional forecasts using a VAR model (p.241). The RATS (v.
User Guide example 7.6 contains an example of conditional forecasting with a VAR model (see below). This example assumes a 5% annual growth rate in GDP. It is
"Constraints Must Use One of the Endogenous Variables Please Check Constraint Number 1"
I was trying to compute conditional forecasts using a VAR model (p.241). The RATS (v.
As can be seen the variables are in log format so the 5% growth rate is added in. I was trying to compute conditional forecasts from a 3-variable VAR model of the impairment rate (non-performing loans divided by total loans for a portfolio of loans). Apart from growth in the impairment rate, the two other variables are growth in the rate of unemployment and the growth rate of the equity market. Using 2015 and 2016 forecasts for growth in the rate of unemployment of -11% and -10%, and equity market growth of 6% and 7%, respectively, I tried to modify the RATS example above. The difference in your example is that the variables are expressed in log levels (e.g., logusagdp, etc.). All 3 variables in my model, however, are growth rates. I tried to follow the logic you used but when I ran the code, I got the following error message.compute fstart=2007:1,fend=2009:4
@condition(model=canmodel,steps=12,results=condfore) 2
# logusagdp 2007:4 logusagdp(2006:4)+.05
# logusagdp 2008:4 logusagdp(2006:4)+.10
forecast(model=canmodel,results=forecasts,from=fstart,to=fend)
do i=1,6
compute [label] l=%modellabel(canmodel,i)
graph(header="Forecasts of "+l,window=l,$
key=below,klabels=||"Unconditional","Conditional"||) 2
# forecasts(i)
# condfore(i)
end do i
"Constraints Must Use One of the Endogenous Variables Please Check Constraint Number 1"