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.
data_impute(Data, method = "kalman", variables = NULL, verbose = FALSE)data.frame: data frame of target variable, exogenous variables, and observed date (named 'date')
string: select which method to use from the imputeTS package; 'interpolation', 'kalman', 'locf', 'ma', 'mean', 'random', 'remove','replace', 'seadec', 'seasplit'
string: vector of variables to standardize, default is all but 'date' column
boolean: show start-up status of impute.missing.routine
data.frame with missing data imputed