transformSSM {KFAS} | R Documentation |
Transform Multivariate State Space Model for Sequential Processing
Description
transformSSM
transforms the general multivariate Gaussian state space model
to form suitable for sequential processing.
Usage
transformSSM(object, type = c("ldl", "augment"), tol)
Arguments
object |
State space model object from function |
type |
Option |
tol |
Tolerance parameter for LDL decomposition (see |
Details
As all the functions in KFAS use univariate approach i.e. sequential processing,
the covariance matrix of the observation equation needs to be
either diagonal or zero matrix. Function
transformSSM
performs either
the LDL decomposition of , or augments the state vector with
the disturbances of the observation equation.
In case of a LDL decomposition, the new contains the diagonal part of the
decomposition, whereas observations
and system matrices
are
multiplied with the inverse of
. Note that although the state estimates and
their error covariances obtained by Kalman filtering and smoothing are identical with those
obtained from ordinary multivariate filtering, the one-step-ahead errors
and their variances
do differ. The typical
multivariate versions can be obtained from output of
KFS
using mvInnovations
function.
In case of augmentation of the state vector, some care is needed interpreting the
subsequent filtering/smoothing results: For example the muhat
from the output of KFS
now contains also the smoothed observational level noise as that is part of the state vector.
Value
model |
Transformed model. |