imputeFAMD(X, ncp = 2, method=c("Regularized","EM"), row.w = NULL, coeff.ridge=1,threshold = 1e-06, seed = NULL, maxiter = 1000,...)We advice to use the regularized version of the algorithm to avoid the overfitting problems which are very frequent when there are many missing values. In the regularized algorithm, the singular values of the FAMD are shrinked.
The output of the algorithm can be used as an input of the FAMD function of the FactoMineR package in order to perform FAMD on an incomplete dataset.
imputePCA## Not run:
# data(ozone)
# res.impute <- imputeFAMD(ozone, ncp=3)
# ## The output can be used as an input of the FAMD function of the FactoMineR package
# ##to perform the FAMD on the incomplete data ozone
# res.afdm <- FAMD(ozone,tab.comp=res.impute$tab.disj)
# ## End(Not run)
Run the code above in your browser using DataLab