I am trying to run a MFA on the data attached and I have no idea why I am getting the following error:
Error in apply(Lg[group.actif, ], 2, sum) :
dim(X) must have a positive length
My code is the following:
res2 <- MFA(julich,
group = c(1,126),ncp=5,
type = c("n","s"),
name.group = c("fer","bacterial"),
num.group.sup = c(1))
Only the first variable is quantitative (type of fertilizer) and the rest are numerical. However, it seems that the error has to do with having an empty data frame. Has anyone had a similar issue? If that is the case, were you able to fix it? This is the first time I encounter this error, and I am struggling to find out a solution. I will appreciate any input.
Again, thanks for your time!
Emma
--