
 
 
Hi,
Could you please tell me how I correct the following error message?
“Error in object$tables[[v]] : subscript out of bounds”
 
This is the code:
 
library(e1071)
data(iris)
attach(iris)
class_label <- names(iris)[1]  
myformula <- formula(paste(class_label,"~ ."))
mymodel<-naiveBayes(myformula, iris,cross=3) 
predict(mymodel,iris)        ##Error in object$tables[[v]] : subscript out of bounds
 
Cheers,
Amy 		 	   		  
_________________________________________________________________
Link all your email accounts and social updates with Hotmail. Find out now.

	[[alternative HTML version deleted]]

