tsfilter.tsmarch: Model Filtering

tsfilter.cgarch.estimateR Documentation

Model Filtering

Description

Filters new data based on an already estimated model.

Usage

## S3 method for class 'cgarch.estimate'
tsfilter(
  object,
  y = NULL,
  newxreg = NULL,
  newvreg = NULL,
  update = TRUE,
  cond_mean = NULL,
  ...
)

## S3 method for class 'dcc.estimate'
tsfilter(
  object,
  y = NULL,
  newxreg = NULL,
  newvreg = NULL,
  update = TRUE,
  cond_mean = NULL,
  ...
)

## S3 method for class 'gogarch.estimate'
tsfilter(object, y = NULL, newxreg = NULL, cond_mean = NULL, ...)

Arguments

object

an object of class “cgarch.estimate” or “dcc.estimate”.

y

an xts matrix of new values to filter.

newxreg

an optional list with one element per series supplying the mean equation regressors of the first stage models. Each element is either NULL or a matrix/xts of regressors with the same number of rows as y and the same number of columns as the regressors used when specifying that series' model. The list may be fully named (in which case it may be partial, with unmentioned series treated as NULL) or fully unnamed (in which case it must have exactly one element per series). Series whose first stage models were specified without mean regressors must have NULL elements. For series with mean regressors, a NULL element (or a missing entry in a partial named list) results in the regressors being set to zero with a warning. Not used in the GOGARCH model.

newvreg

an optional list with one element per series supplying the variance equation regressors of the first stage models. Each element is either NULL or a matrix/xts of regressors with the same number of rows as y and the same number of columns as the variance regressors used when specifying that series' model. The list may be fully named (in which case it may be partial, with unmentioned series treated as NULL) or fully unnamed (in which case it must have exactly one element per series). Series whose first stage models were specified without variance regressors must have NULL elements. Unlike newxreg, a NULL element (or a missing entry in a partial named list) for a series with variance regressors raises an error. Not used in the GOGARCH model.

update

whether to update certain values using the most recent information less than the new data (see details).

cond_mean

an optional matrix of the filtered conditional mean values. For the DCC and Copula GARCH models this is only available when every first stage model uses arma = c(0,0) and no mean regressors; otherwise the conditional mean is taken from the first stage models automatically.

...

additional arguments for future expansion.

Details

The method filters new data and updates the object with this new information so that it can be called recursively as new data arrives. The “update” argument allows values such as the intercept matrices and transformation estimates (for the “spd” and “empirical” methods) in the dynamic case, and the constant correlation in the constant case, to use information up to and include time T, where T is the time stamp just preceding the new y timestamps. In this way, the filter method can be called recursively and the user can selectively choose to either use the updating scheme or use the original estimated values. Whatever the case, this ensures that there is no look-ahead bias when filtering new information.

Value

A “cgarch.estimate” or “dcc.estimate” object with updated information. All values in the object are updated with the exception of the hessian and scores which remain at their estimation set values.


tsmarch documentation built on Nov. 2, 2026, 9:06 a.m.