Rdocumentation
powered by
Learn R Programming
MixedDataImpute (version 0.1)
prepare_data: Prepare a dataset for imputation
Description
Prepares a dataset for imputation by mapping factor levels to integers and scaling Y. Primarily used by
hcmm_impute
internally
Usage
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