[R] Class probabilities in rpart

Christian Schäfer schaefer at pointone.de
Sat Sep 15 12:41:31 CEST 2007


Hi,

the predict.rpart() function from the rpart library allows for 
calculating the class probabilities for a given test case instead of a 
discrete class label.

How are these class probabilities derived? Is it simply the proportion 
of the majority class to all cases in a leaf node?

Thanks in advance,
Chris



More information about the R-help mailing list