estim_ncpFAMD.Rd
Estimate the number of dimensions for the Factorial Analysis of
Mixed Data by cross-validation. This function is nearly identical with
estim_ncpFAMD
function in 'missMDA' package. The only difference is
that in this function imputeFAMD
is used, which then calls
imputeMFA
, then impute_mod
. In impute_mod
, some changes
have been made to avoid the convergence error.
a data.frame with categorical variables; with missing entries or not.
integer corresponding to the minimum number of components to test.
integer corresponding to the maximum number of components to test.
"Regularized" by default or "EM".
"Kfold" for cross-validation or "loo" for leave-one-out.
number of simulations, useful only if method.cv="Kfold".
percentage of missing values added in the data set, useful only if method.cv="Kfold.
a vector indicating the indexes of the supplementary individuals.
a vector indicating the indexes of the supplementary variables (quantitative and categorical).
the threshold for assessing convergence
boolean. TRUE means that a progressbar is writtent.
max iteration number for imputeFAMD
ncp
the number of components retained for the FAMD.
criterion
the criterion (the MSEP) calculated for each number
of components.
Audigier, V., Husson, F. & Josse, J. (2014). A principal components method to impute mixed data. Advances in Data Analysis and Classification.