nonnegative
,
and positive-continuous
variable types in mi data objectmi.preprocess(data, info)
mi.postprocess(mi.data, info)
mi.info
.mi.completed
data.frame
or a list of dataframemi.info
matrixmi.proprocess
will transform the nonnegative
and positive-continuous
variable types. If the variable is of nonnegative
type, the function transforms the variable
into two variables: an indicator indicates whether the value is postive or not and
a transformed variable that takes on all positive value and is transformed either by taking
a log; 0 and NA will be treated as missing for such a variable. If the variable
is of positive-continuous
type, it will be transformed by taking a log.
mi.postprocess
will transform the imputed dataset back to its original form.
The imputed dataset is obtained from mi.completed
function.mi.completed