kf: Kalman filter for STS models

kfR Documentation

Kalman filter for STS models

Description

kf computes the innovations and the conditional states with the Kalman filter algorithm.

Usage

kf(mdl, ...)

## S3 method for class 'stsm'
kf(mdl, y = NULL, x1 = NULL, P1 = NULL, filtered = FALSE, ...)

Arguments

mdl

an object of class stsm.

...

additional arguments.

y

time series to be filtered when it differs from the model series.

x1

initial state vector.

P1

covariance matrix of x1.

filtered

logical. If TRUE, the filtered states x_t|t and their covariances matrices P_t|t are returned. Otherwise, x_t|t-1 and P_t|t-1 are

Value

An list with the innovations, the conditional states and their covariance matrices.


gallegoj/tfarima documentation built on March 31, 2024, 10:32 a.m.