Description Usage Arguments Details Value Author(s) See Also Examples
From an SS object, runs the Kalman filter to produce the conditional means and variances of the state vectors given the current time point.
1 | kfilter(ss)
|
ss |
object of class |
The Kalman filter yields the distribution
(θ_t|y[,1:t]) ~ N(m_t, C_t)
through the recursion for t=1,…,n,
a_t = G_t m_{t-1}
R_t = G_t C_{t-1} G_t^T + W_t
f_t = F_t^T a_t
Q_t = F_t^T R_t F_t + V_t
e_t = y_t - f_t
A_t = R_t F_t Q_t^{-1}
m_t = a_t + A_t e_t
C_t = R_t - A_t Q_t A_t^T
Also, the log-likelihood is calculated.
An object of class SS
with the components m
,
C
, and loglik
updated.
Claus Dethlefsen and Søren Lundbye-Christensen.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.