search for: reslda

Displaying 1 result from an estimated 1 matches for "reslda".

Did you mean: reseda
2012 Jan 17
1
Error predict with lda and cross validation
Hi, I use the lda function from the MASS package to classify some samples according to some chemical properties. If I run lda without cross validation all is ok but, if I run lda with cross validation, the R consol say: resLDA <- ldaRedOx <- lda(Activity ~ TRedOx[,1:6], CV=TRUE, data=dfDataRedOx, subset=train) predLDA <- predict(resLDA, newdata=dfDataRedOx[-train,])$class > predLDA <- predict(resLDA, newdata=dfDataRedOx[-train,])$class Error in UseMethod("predict") : no applicable method f...