Likely variables with missing values are V46 Error in fac(r = r, nfactors = nfactors, n.obs = n.obs, rotate = rotate, :

Dear all,

I am working on a project in R. When I had a smaller number of participants, the following loop worked perfectly for me:

for (i in 1:1000){
round <- paste("r", i, sep="")

f <- fa(enBil.cs[,names(enBil.cs) %in% enBil.perms[,i]], 1,
rotate="none", fm="minres", SMC=T, scores=T)

round.loadings <- as.data.frame(unclass(f$loadings))

round.loadings$id <- row.names(round.loadings)
names(round.loadings) <- c(round, "id")
enBil.cs.loadings <- merge(enBil.cs.loadings, round.loadings, by="id", all.x=T)

enBil.cs.fit[,round]<- f$value

enBil.cs.scores[,round] <- f$scores

}
However after I received more replies, I keep getting the following error:

Likely variables with missing values are V46
Error in fac(r = r, nfactors = nfactors, n.obs = n.obs, rotate = rotate, :
I am sorry: missing values (NAs) in the correlation matrix do not allow me to continue.
Please drop those variables and try again.
In addition: Warning message:
In cor(r, use = use) : the standard deviation is zero

What should I do to resolve this issue? Thank you in advance.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.