data_impute {OOS} | R Documentation |
Impute missing values
Description
A function to impute missing values. Is used as a data preparation helper function and is called internally by forecast_univariate, forecast_multivariate, and forecast_combine.
Usage
data_impute(Data, method = "kalman", variables = NULL, verbose = FALSE)
Arguments
Data |
data.frame: data frame of target variable, exogenous variables, and observed date (named 'date') |
method |
string: select which method to use from the imputeTS package; 'interpolation', 'kalman', 'locf', 'ma', 'mean', 'random', 'remove','replace', 'seadec', 'seasplit' |
variables |
string: vector of variables to standardize, default is all but 'date' column |
verbose |
boolean: show start-up status of impute.missing.routine |
Value
data.frame with missing data imputed
[Package OOS version 1.0.0 Index]