| kf | R Documentation |
kf computes the innovations and the conditional states with the Kalman
filter algorithm.
kf(mdl, z = NULL, x0 = NULL, P0 = NULL, filtered = FALSE, ...)
mdl |
an object of class |
z |
time series to be filtered when it differs from the model series. |
x0 |
initial state vector. |
P0 |
covariance matrix of x1. |
filtered |
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. |
A list with the innovations, the conditional states and their covariance matrices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.