data_impute: Impute missing values

Description Usage Arguments Value

View source: R/data_preparation.R

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

1
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


OOS documentation built on March 17, 2021, 5:08 p.m.