The same thing as the problem, as well as changing the factor, did not solve my answer , because I added each variable as an additional one .
First, I converted all the numerical data into a coefficient:
Xfac = factor(X[,1], ordered = TRUE) for (i in 2:29){ tfac = factor(X[,i], ordered = TRUE) Xfac = data.frame(Xfac, tfac) } colnames(Xfac)=labels(X[1,])
However, this will not work. But my second problem was that I included EVERY factor as an additional variable! So:
MCA(Xfac, quanti.sup = c(1:29), graph=TRUE) MCA(Xfac, quali.sup = c(1:29), graph=TRUE)
Generates the same error, but this works:
MCA(Xfac, graph=TRUE)
Not converting data into factors also created a problem.
I posted the same answer in a related topic: fooobar.com/questions/1238117 / ...
source share