Generic smoother for all models.
generic_smoother(mt, Ct, at, Rt, G, G.labs)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.
matrix: A matrix containing the filtered mean of the latent states at each time. Each row should represent one variable.
array: A 3D-array representing the filtered covariance matrix of the latent states at each time. The third dimension should represent the time index.
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.
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.
array: A 3D-array representing the transition matrix of the model at each time.
matrix: A character matrix containing the type 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 ArtigoPacote;textualkDGLM.
For the details about the algorithm implemented see ArtigokParametrico;textualkDGLM, Petris-DLM;textualkDGLM, chapter 2, WestHarr-DLM;textualkDGLM, chapter 4, and Kalman_filter_origins;textualkDGLM.
fit_model
analytic_filter