out.of.sample.forecast.cov.estimators.wrt.data {dse2} | R Documentation |
Calculate out-of-sample forecasts.
out.of.sample.forecast.cov.estimators.wrt.data(data, zero=F, trend=F, estimation.sample=.5, horizons=1:12,quiet=F, estimation.methods=NULL, compiled=.DSECOMPILED)
data |
An object of class TSdata. |
estimation.methods |
A list as used by estimate.models. |
zero |
If T then forecast.cov is also calculated for a forecast of zero. |
trend |
If T then forecast.cov is also calculated for a forecast of a linear trend. |
estimation.sample |
Indicates the portion of the data to use for estimation. If estimation.sample is an integer then it is used to indicate the number of points in the sample to use for estimation. If it is a fracton it is used to indicate the portion of points to use for estimation. The remainder of the sample is used for evaluating forecasts. |
horizons |
Horizons for which forecast covariance should be calculated. |
quiet |
If T then estimation information is not printed. |
The data is slpit into a sub-sample used for estimation and another sub-sample used for calculating the forecast covariance.
An object as returned by forecast.cov.estimators.wrt.data.
forecast.cov.estimators.wrt.data
,
forecast.cov.estimators.wrt.true
,
estimate.models
if(is.R()) data("eg1.DSE.data.diff", package="dse1") z <- out.of.sample.forecast.cov.estimators.wrt.data(eg1.DSE.data.diff, estimation.methods=list(est.VARX.ls=list(max.lag=4)))