Learn R Programming

tsissm (version 1.0.1)

residuals.tsissm.estimate: Model Residuals

Description

Extract the residual values from an estimated model.

Usage

# S3 method for tsissm.estimate
residuals(object, standardize = FALSE, transformed = TRUE, ...)

Value

An xts vector of the model residuals for h = 1, else a data.table with rows representing the first prediction date and columns the h-ahead forecast residuals.

Arguments

object

an object of class “tsissm.estimate”.

standardize

whether to scale the residuals by the estimated standard deviation.

transformed

residuals based values in transformed space (Box Cox).

...

not currently used.

Details

For h>1, this is like performing an in-sample backtest starting at time 1 with fixed coefficients. The purpose of having the matrix of h-step ahead residuals is in order to calculate the 1:h covariance matrix as well as the cross 1:h covariance matrix when ensembling series at multiple horizons.