Arguments
origdata
A data frame whose missing values need to
be imputed. This data frame should be selected from the
missing data GUI.
method
The imputation method selected from the
missing data GUI. Must be one of 'Below
10 neighbor','Multiple Imputation','Mode'.
vartype
A vector of the classes of origdata. The
length is the same as the number of columns of origdata.
The value should be from "integer", "numeric", "factor",
and "character".
missingpct
A vector of the percentage of missings
of the variables in origdata. The length is the same as
the number of columns of origdata. The value should be
between 0 and 1.
condition
A vector of categorical variables. The
dataset will be partitioned based on those variables, and
then the imputation is implemented in each group. There
are no missing values in those variables. If it is null,
then there is no division. The imputa