How to use Kalman filters to impute missing observations?

How to use Kalman filters to impute missing observations?

Once the Kalman filter has been applied to the entire time range, you have optimal estimates of the states a t, P t for t = 1, 2, …, T. Imputing data is then simple via the measurement equation. In particular, you just calculate: As for a reference, Durbin and Koopman (2012) is excellent; section 4.10 discusses missing observations.

How is the Kalman filter an iterative algorithm?

Briefly, the Kalman filter is an iterative algorithm that produces, at each time , an estimator of the state vector which is given by the orthogonal projection of the state vector onto the observed variables up to that time. Let denote the estimator of based on the observations and let be its covariance matrix, i.e. , the MSE matrix.

How are filters used to impute missing data?

This can be performed for any number of time periods with missing data. If there is data y t, then the first set of filtering equations take the best guess without data, and add a “correction” in, based on how good the previous estimate was.

How to impute missing values in a time series?

To impute (fill all missing values) in a time series x, run the following command: Output is the time series x with all NA’s replaced by reasonable values. This is just one example for an imputation algorithm. In this case interpolation was the algorithm of choice for calculating the NA replacements.

How to impute a time series in R?

The imputeTS package can be found on CRAN. For installation execute in R: To impute (fill all missing values) in a time series x, run the following command: Output is the time series x with all NA’s replaced by reasonable values. This is just one example for an imputation algorithm.

How are missing values used in missing value imputation?

Except the missing values their versions are identical. The NAs for the time series were artifically inserted by simulating the missing data pattern observed in similar non-complete time series from the same domain. Having a complete and incomplete version of the same dataset is useful for conducting experiments of imputation functions.

Which is time series missing value imputation package?

imputeTS: Time Series Missing Value Imputation The imputeTS package specializes on (univariate) time series imputation. It offers several different imputation algorithm implementations. Beyond the imputation algorithms the package also provides plotting and printing functions of time series missing data statistics.

Where can I find the imputation algorithms package?

Beyond the imputation algorithms the package also provides plotting and printing functions of time series missing data statistics. Additionally three time series datasets for imputation experiments are included. The imputeTS package can be found on CRAN.