Learn R Programming

miceadds (version 1.5-0)

mice.impute.2lonly.pmm2: Imputation at Level 2 (in miceadds)

Description

These functions are just bug fixes of mice.impute.2lonly.pmm and mice.impute.2lonly.norm in mice (version 2.21).

Usage

mice.impute.2lonly.pmm2(y, ry, x, type, ...)
mice.impute.2lonly.norm2(y, ry, x, type, ...)

Arguments

y
Incomplete data vector of length n
ry
Vector of missing data pattern (FALSE=missing, TRUE=observed)
x
Matrix (n x p) of complete covariates. Only numeric variables are permitted for usage of this function.
type
Group identifier must be specified by '-2'. Predictors must be specified by '1'.
...
Other named arguments.

Value

  • A vector of length nmis with imputations.

See Also

mice.impute.2lonly.pmm (mice), mice.impute.2lonly.norm (mice)