Description Usage Arguments Details Value Author(s) See Also Examples
Based on the output from kfilter, this function runs the
Kalman smoother to produce the conditional means and variances of the
state vectors given all observations.
1 | smoother(ss)
|
ss |
object of class |
The Kalman smoother yields the distribution
(θ_t|y[,1:n]) ~ N(m*_t, C*_t)
through the backward recursion for t=n..1,
R_{t+1}= G_{t+1} C_t G_{t+1}^T + W_{t+1}
B_t = C_t G_{t+1}^T R_{t+1}^{-1}
m*_t = m_t + B_t ( m*_{t+1} - G_{t+1} m_t)
C*_t = C_t + B_t ( C*_{t+1} - R_{t+1} ) B_t^T
where the matrices F, G, V, W are stored in
the SS object as functions, eg. Fmat(tt,x,phi), see
SS. The vectors m and matrices C are set by
the kfilter and are overwritten by the Kalman smoother.
The smoother also calculates the signal, μ_t = F^T_t m*_t.
An object of class SS with the components m,
C, and mu 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.