[R] Inconsistencies in the rpart.object help file?

Terry Therneau therneau at mayo.edu
Thu Jan 27 14:43:56 CET 2011

> splits, a matrix of split labels

 This is a mistake in the help file.  

> I'm also not sure I understand what the yval2 columns signify (even
that I read what it says in the help).

  For the kyphosis data set y is a factor with two levels.  For the
first split yval2 contains (1, 64, 17, .7901235, .2098765); this node is
classified into group 1, it contains 64 group 1 and 17 group 2
observations, pr(group 1) = .79 and pr(group 2) = .21.
  Note that if the model specifies priors that the last two values will
not be 64/81 and 17/81.

Terry T.

More information about the R-help mailing list