transformSSM
transforms the general multivariate Gaussian state space model
to form suitable for sequential processing.
transformSSM(object, type = c("ldl", "augment"))
State space model object from function SSModel
.
Option "ldl"
performs LDL decomposition for covariance matrix \(H_t\),
and multiplies the observation equation with the \(L_t^{-1}\), so \(\epsilon_t^*
\sim N(0,D_t)\). Option "augment"
adds
\(\epsilon_t\) to the state vector, so \(Q_t\) becomes block diagonal
with blocks \(Q_t\) and \(H_t\).
Transformed model.
As all the functions in KFAS use univariate approach i.e. sequential processing,
the covariance matrix \(H_t\) of the observation equation needs to be
either diagonal or zero matrix. Function transformSSM
performs either
the LDL decomposition of \(H_t\), or augments the state vector with
the disturbances of the observation equation.
In case of a LDL decomposition, the new \(H_t\) contains the diagonal part of the
decomposition, whereas observations \(y_t\) and system matrices \(Z_t\) are
multiplied with the inverse of \(L_t\). 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
\(v_t\) and their variances \(F_t\) do differ. The typical
multivariate versions can be obtained from output of KFS
using mvInnovations
function.