generic_smoother | R Documentation |
Generic smoother for all models.
generic_smoother(mt, Ct, at, Rt, G, G.labs, G.idx)
mt |
matrix: A matrix containing the filtered mean of the latent states at each time. Each row should represent one variable. |
Ct |
array: A 3D-array representing the filtered covariance matrix of the latent states at each time. The third dimension should represent the time index. |
at |
matrix: A matrix containing the one-step-ahead mean of the latent states at each time based upon the filtered mean. Each row should represent one variable. |
Rt |
array: A 3D-array representing the one-step-ahead covariance matrix of the latent states at each time based upon the filtered covariance matrix. The third dimension should represent the time index. |
G |
array: A 3D-array representing the transition matrix of the model at each time. |
G.labs |
matrix: A character matrix containing the type associated with each value in G. |
G.idx |
matrix: A numeric matrix containing the index associated with each value in G. |
For the models covered in this package, we always assume that the latent states have Multivariate Normal distribution. With that assumption, we can use Kalman Smoother algorithm to calculate the posterior of the states at each time, given everything that has been observed (assuming that we already know the filtered distribution of the states).
For the details about the implementation see \insertCiteArtigoPacote;textualkDGLM.
For the details about the algorithm implemented see \insertCiteArtigokParametrico;textualkDGLM, \insertCitePetris-DLM;textualkDGLM, chapter 2, \insertCiteWestHarr-DLM;textualkDGLM, chapter 4, and \insertCiteKalman_filter_origins;textualkDGLM.
A list containing the smoothed mean (mts) and covariance (Cts) of the latent states at each time. Their dimension follows, respectively, the dimensions of mt and Ct.
fit_model
analytic_filter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.