Estimate the hidden state and expected log-likelihood given the observations, exogeneous input and system parameters. This is an internal function and should not be called directly.
Kalman_smoother(y, u, v, theta, stdlik = TRUE)
Observation matrix (may need to be normalized and centered before hand) (q rows, T columns)
Input matrix for the state equation (m_u rows, T columns)
Input matrix for the output equation (m_v rows, T columns)
A list of system parameters (A, B, C, D, Q, R)'
Boolean, whether the likelihood is divided by the number of observations. Standardizing the likelihood this way may speed up convergence in the case of long time series.
A list of fitted elements (X, Y, V, J, and lik)