Forecasting idiosyncratic VAR process
Produces forecasts of the idiosyncratic VAR process for a given forecasting horizon by estimating the best linear predictors
idio.predict(object, x, cpre, n.ahead = 1)
object
: fnets
objectx
: input time series, with each row representing a variablecpre
: output of common.predictn.ahead
: forecast horizona list containing - is: in-sample estimator of the idiosyncratic component (with each column representing a variable)
fc: forecasts of the idiosyncratic component for a given forecasting horizon h
(with each column representing a variable)
n.ahead: forecast horizon
## Not run: out <- fnets(data.unrestricted, do.lrpc = FALSE, var.args = list(n.cores = 2)) cpre <- common.predict(out) ipre <- idio.predict(out, cpre) ## End(Not run)
Useful links