prepare_data: Prepare a dataset for imputation

Description Usage Arguments Value

Description

Prepares a dataset for imputation by mapping factor levels to integers and scaling Y. Primarily used by hcmm_impute internally

Usage

1
prepare_data(X, Y, init = TRUE)

Arguments

X

A data frame of categorical variables (as factors)

Y

A matrix or data frame of continuous variables

init

If TRUE, initialize missing values (from a marginal bootstrap of observed values)

Value

An object of class hcmm_data


MixedDataImpute documentation built on May 1, 2019, 9:29 p.m.