imputeGroup: Group-wise missing value imputation

Description Usage Arguments Value Examples

Description

By default MNAR missing values are assigned 0. MAR values are imputed with some of the methods.

Usage

1
2
imputeGroup(x, group = NULL, do.mar = TRUE, do.mnar = TRUE,
  mnar.default = 0, method = "knn", ...)

Arguments

x

matrix with missing values to impute.

group

grouping (column) variable.

do.mar

logical; whether to perform MAR imputation.

do.mnar

logical; whether to perform MNAR imputation.

mnar.default

numerical; default value assigned to MNAR missing values.

method

method used for imputation.

...

additional arguments passed to the imputation methods.

Value

a matrix with missing values imputed.

Examples

1

ddiez/q3tools documentation built on May 15, 2019, 1:52 a.m.