Hi, there, I am using "lda" function in MASS with R. I have several datasets, some are small and some big (say, 40 by 6800). I ran the following command on small datasets smoothly z<-lda(dat,g,CV=T) # dat is my dataset, g is the group labels but for big datasets I got error message like, Error in x - matrix(dm[i, ], n, p, byrow = TRUE) : non-conformable arrays In addition: Warning messages: 1: variables are collinear in: lda.default(dat, g, CV = T) 2: Replacement length not a multiple of the elements to replace in matrix(...) I double checked the dim of dat (40 by 6800) and g (length=40) and didn't have idea what's wrong. Could anyone give me some clue about this? Any info will be highly appreciated. thanks, Sophie -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._