defaultGlobalMean: Global Mean Model for Imputation

Description Usage Arguments Value

Description

This function imputes missing values through a global mean.

Usage

1
defaultGlobalMean(data, imputationParameters)

Arguments

data

The data.table object containing the data.

imputationParameters

A list of the parameters for the imputation algorithms. See defaultImputationParameters() for a starting point.

Value

Returns a vector of the estimated/imputed values. If a value existed in the original data, then an NA is returned in that location. Otherwise, the mean of all available observations is returned (computed across the entire dataset).


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