ARMAimpute | R Documentation |
Predicts missing values of a time series based on an ARMA model
ARMAimpute(X, phi, theta, sigma, plot = TRUE)
X |
a vector containing time series data with missing values. |
phi |
a vector with autoregressive coefficients. |
theta |
a vector the moving average coefficients. |
sigma |
the white noise variance. |
a list containing the predicted values of the time series, upper and lower bounds for the 95
This function predicts or imputes missing values in a time series by constructing an autocovariance function out of given ARMA parameters. One should find estimated for the ARMA parameters based on the observed data using the arima()
function and then feed these into this function to get the predictions for the missing values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.