KFS(object,
smoothing = c("state", "disturbance", "both", "none"),
simplify = TRUE, transform = c("ldl", "augment"),
nsim = 100, theta = NULL, maxiter = 100)
SSModel
or
KFS
(in which case only smoothing is performed)."state"
for Gaussian models.
For non-Gaussian models, state smoothing is always
performed."ldl"
. See function transformSSM
for
details.log(mean(y/u))
for Poisson and
log(mean(y/(u-y)))
for Binomial distribution (or
log(mean(y))
in case of $u_t-y_t =
0$ for some $t$). Only used for
non-Gsmooth="state"
or smooth="both"
.smooth="state"
or
smooth="both"
.smooth="disturbance"
or smooth="both"
.smooth="disturbance"
or smooth="both"
.smooth="disturbance"
or smooth="both"
.smooth="disturbance"
or smooth="both"
.simplify=FALSE
, list
contains following components:approxSSM
.v
, F
, Finf
, K
and Kinf
are usually not the same as those calculated in usual
multivariate Kalman filter. As filtering is done one
observation element at the time, the elements of
prediction error $v_t$ are uncorrelated, and
F
, Finf
, K
and Kinf
contain
only the diagonal elemens of the corresponding covariance
matrices. In rare cases of a very long diffuse initialization phase
with highly correlated states, cumulative rounding errors
in computing Finf
and Pinf
can sometimes
cause the diffuse phase end too early. Changing the
tolerance parameter tolF
to smaller (or larger)
should help.