kf computes the innovations and the conditional states with the Kalman
filter algorithm.
kf(mdl, z = NULL, x0 = NULL, P0 = NULL, filtered = FALSE, ...)A list with the innovations, the conditional states and their covariance matrices.
an object of class ssm.
time series to be filtered when it differs from the model series.
initial state vector.
covariance matrix of x1.
logical. If TRUE, the filtered states x_{t|t} and their covariance matrices P_{t|t} are returned. Otherwise, the forecasted states x_{t|t-1} and thier covariance matrices P_{t|t-1} are returned.
additional arguments.