| out.of.sample.forecastCov.estimatorsWRTdata {dse2} | R Documentation |
Calculate out-of-sample forecasts.
out.of.sample.forecastCov.estimatorsWRTdata(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 forecastCov is also calculated for a forecast of zero. |
trend |
if T then forecastCov 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. |
compiled |
a logical indicating if compiled code should be used. (Usually true except for debugging.) |
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 forecastCov.estimatorsWRTdata.
forecastCov.estimatorsWRTdata,
forecastCov.estimatorsWRTtrue,
estimate.models
if(is.R()) data("eg1.DSE.data.diff", package="dse1")
z <- out.of.sample.forecastCov.estimatorsWRTdata(eg1.DSE.data.diff,
estimation.methods=list(est.VARX.ls=list(max.lag=4)))