ENGLISH VERSION BELOW
Bonjour à tous,
Je suis nouvelle sur le groupe. J'ai une erreur lorsque j'essaye de traiter les valeurs manquantes de mes données.
J'ai 29 variables et 387 observations dont des données manquantes et je souhaite faire une ACM.
27 variables qualitatives, toutes catégorielles dont certaines ordinales et 2 variables quantitatives dans mon data frame "data_MCA".
Voilà ce qui apparait :
nb <- estim_ncpMCA(data_MCA, quanti.sup = quanti )
Erreur dans apply(tabdisj[, (vec[i] + 1):vec[i + 1]], 1, which.max) :
dim(X) doit avoir un longueur positive
complete <- imputeMCA(data_MCA, quanti.sup = quanti, ncp = 2)
Erreur dans apply(tabdisj[, (vec[i] + 1):vec[i + 1]], 1, which.max) :
dim(X) doit avoir un longueur positive
Pouvez vous m'aider ?
Merci par avance,
Emma
Hello everyone,
I'm new to the group. I have an error when I try to deal with missing values in my data.
I have 29 variables and 387 observations including missing data and I want to do a MCA.
27 qualitative variables, all categorical, some ordinal, and 2 quantitative variables in my "data_MCA" data frame.
This is what appears:
nb <- estim_ncpMCA(data_MCA, quanti.sup = quanti )
Error in apply(tabdisj[, (vec[i] + 1):vec[i + 1]], 1, which.max) :
dim(X) must have a positive length
complete <- imputeMCA(data_MCA, quanti.sup = quanti, ncp = 2)
Error in apply(tabdisj[, (vec[i] + 1):vec[i + 1]], 1, which.max):
dim(X) must have a positive length
Can you help me?
Thanks in advance,
Emma