I am trying to do classification with Randomforest() . the class variable
is nominal.

But I get this error
model1 <-randomForest(Cath~.,data=trainrf)
Error in y - ymean : non-numeric argument to binary operator
In addition: There were 26 warnings (use warnings() to see them)
>  model1
Error: object 'model1' not found

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to