defaultMovingAverage: The default moving average model.

Description Usage Arguments Examples

Description

This module is very simple: it uses a mean of the last 3 observed (non-NA) values to predict the next value. If there aren't 3 previous values, the number available are used. If there aren't any previous values, the global mean is imputed (imputing NA could cause issues with the ensemble weighting process).

Usage

1

Arguments

x

A numeric vector to be imputed.

Examples

1
2
3
defaultMovingAverage(x = c(10, 10, 10, NA, 1, NA))
defaultMovingAverage(x = c(NA, 1:5, NA))
defaultMovingAverage(x = c(NA, 1, NA, 2, NA, 3, NA, 4, NA, 5, NA))

SWS-Methodology/faoswsImputation documentation built on May 9, 2019, 11:48 a.m.