Description Usage Arguments Value
Impute missing values of one variable by Weighted Moving Average (imputeTS-package)
1 | impute_weighted_ma(data, var, k = 10, weighting = "simple", ...)
|
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 |
vector with complete data of variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.