Usage
imputePCA(X, ncp = 2, scale = TRUE, method = "Regularized",
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 reconstruct data with the PCA reconstruction formulae
scale
boolean. By default TRUE leading to a same weight for each variable
method
"Regularized" by default or "EM"
row.w
an optional row weights (by default, a vector of 1 over the number of rows for uniform row weights)
coeff.ridge
a positive coefficient that permits to shrink the eigenvalues more than by the mean of the last eigenvalues
(by default, 1 the eigenvalues are shrunk by the mean of the last eigenvalues; a coefficient between 1 and 2 is required)
threshold
the threshold for assessing convergence
seed
a single value, interpreted as an integer for the set.seed function (if seed = NULL, missing values are initially imputed by the mean of each variable)
nb.init
integer corresponding to the number of random initializations; the first initialization is the mean of each variable
maxiter
integer, maximum number of iteration for the algorithm
...
further arguments passed to or from other methods