HI, Dear community,

I am using the linear discriminant analysis to build model and make new
predictions:

> dim(train)  #training data
[1] 1272   22
> dim(valid)  # validation data
[1] 140  22


lda.fit <- lda(out ~ ., data=train, na.action="na.omit", CV=TRUE) # model
fitting of linear discriminant analysis on training data

> predict(lda.fit, valid)   # make prediction on validation data
Error in UseMethod("predict") :
  no applicable method for 'predict' applied to an object of class "list"

Can anyone help with this?

Thanks so much!

-- 
Sincerely,
Changbin
--

	[[alternative HTML version deleted]]

