Usage
imputePCA(X, ncp = 2, scale = TRUE, method=c("Regularized","EM"),
row.w=NULL, coeff.ridge=1, threshold = 1e-06, seed = NULL, nb.init = 1,
maxiter = 1000, ...)
Arguments
X
a data.frame with continuous variables containing missing values
ncp
integer corresponding to the number of components used to to predict the missing entries
scale
boolean. By default TRUE leading to a same weight for each variable
method
"Regularized" by default or "EM"
row.w
row weights (by default, a vector of 1 for uniform row weights)
coeff.ridge
1 by default to perform the regularized imputePCA algorithm; useful only if method="Regularized". Other regularization terms can be implemented by setting the value to less than 1 in order to regularized less (to get closer to the results of the EM method
threshold
the threshold for assessing convergence
seed
integer, by default seed = NULL implies that missing values are initially imputed by the mean of each variable. Other values leads to a random initialization
nb.init
integer corresponding to the number of random initializations; the first initialization is the initialization with the mean imputation
maxiter
integer, maximum number of iteration for the algorithm
...
further arguments passed to or from other methods