Arguments
x
A vector containing the names of the quantitative variables to be imputed. If NULL, all quantitative variables will be imputed.
group
The name of a group factor (optional). If NULL, no groups are considered.
data
An object of class data.frame containing the variables to be imputed and, if group is not NULL, the group factor.
plotDir
A directory where to save the plots after imputation (optional). If NULL, no plots will be produced.
tol
The tolerance threshold of the EM algorithm. Default is 0.0001.
maxit
The maximum number of iterations for the EM algorithm. Default is 500.