defaultGlobalMean: Global Mean Model for Imputation

Description Usage Arguments Value

View source: R/defaultGlobalMean.R

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 April 7, 2018, 10:12 p.m.