[R] #library(party) - Compare predicted results for ctree

Rodica Coderie rodikgeorgiana at yahoo.com
Mon Feb 16 11:08:15 CET 2015


Hello,

I've created a ctree model called fit using 15 input variables for a factor predicted variable Response (YES/NO).
When I run the following :
table(predict(fit2), training_data$response) 
I get the following result:

     NO   YES 
NO  48694   480 
YES     0     0

It appears that the NO responses are predicted with 100% accuracy and the YES response are predicted with 0% accuracy.

Why is this happening? It's because of my data or it's something in ctree algorithm?

Thanks!
Rodica



More information about the R-help mailing list