impute_weighted_ma: Impute missing values of one variable by Weighted Moving...

Description Usage Arguments Value

Description

Impute missing values of one variable by Weighted Moving Average (imputeTS-package)

Usage

1
impute_weighted_ma(data, var, k = 10, weighting = "simple", ...)

Arguments

data

the data.table incl. variables with missing data

var

the name of the variable with missing data

k

size of moving window (Expands to both sides of the center element e.g. k=2 means 4 observations (2 left, 2 right))

weighting

Weighting to be used. Accepts the following input: "simple" - Simple Moving Average (SMA) "linear" - Linear Weighted Moving Average (LWMA) "exponential" - Exponential Weighted Moving Average (EWMA) (explanation from imputeTS-package)

...

not used

Value

vector with complete data of variable


MAGDa-BeuthHS/imputeData documentation built on May 8, 2019, 9:28 a.m.