Learn R Programming

bssm (version 0.1.8)

ekf: (Iterated) Extended Kalman Filtering

Description

Function ekf runs the (iterated) extended Kalman filter for the given non-linear Gaussian model of class nlg_ssm, and returns the filtered estimates and one-step-ahead predictions of the states \(\alpha_t\) given the data up to time \(t\).

Usage

ekf(object, iekf_iter = 0)

Arguments

object

Model object

iekf_iter

If iekf_iter > 0, iterated extended Kalman filter is used with iekf_iter iterations.

Value

List containing the log-likelihood, one-step-ahead predictions at and filtered estimates att of states, and the corresponding variances Pt and Ptt.