I have estimated a VAR with an exogenous variable. For example with the haversample data:
Code: Select all
open data haversample.rat
cal(q) 1959
data(format=rats) 1959:1 2006:4 ftb3 gdph ih cbhm
set loggdp = log(gdph)
set loginv = log(ih)
set logc = log(cbhm)
compute lags=4
system(model=var)
variables loggdp loginv logc
lags 1 to lags
det constant ftb3{1 to lags}
end(system)
estimate(noprint,ols,sigma)
"Exogenous variables require some care, as you need values for them throughout the forecast period. If a variable is not the dependent variable of one of the equations, FORECAST takes its values over the forecast horizon from its data series. If you are forecasting out-of-sample, you have two basic ways to handle exogenous variables:
Close the model by adding to it equations or formulas, such as univariate autoregressions, that forecast the exogenous variables.
Set up time paths for the variables (prior to forecasting) with SET or DATA or some other instruction that will directly provide the values.
"
I don't understand what is meant by "Close the model by adding to it equations or formulas, such as univariate autoregressions, that forecast the exogenous variables."
How would I use the instruction to do the forecasts? Is there anything special to it or is it just:
Code: Select all
forecast(model=var, start=%regend(), steps=10, results=forecasts)
Best Jules