select_Kalman_variances is a function to choose hyper-parameters of the
linear Gaussian State-Space Model with time-invariant variances. It relies on the
functions iterative_grid_search and expectation_maximization.
select_Kalman_variances(ssm, X, y, method = "igd", ...)a new statespace object with new values in kalman_params
the statespace object
explanatory variables
time series
(optional, default 'igd') it can be either
'igd'iterative_grid_search is called
'em'expectation_maximization is called
additional parameters