[R] Obtaining the surrogate splits from rpart

Clayton Springer csprin at brandybuck.ca.sandia.gov
Tue Oct 30 20:34:26 CET 2001

Dear r-help,

I am trying to obtain the surrogate splits from an rpart object

The documentation for rpart.object mentions splits (a matrix
with the surrogate splits in it).  But it does not seem to
be quite right.

Thanks in advance for your help,


p.s. It would help my understanding,
if you could give your answers using the built in "fit" example
from rpart.

> data(kyphosis)
> fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis)

Clayton Springer, Ph. D.
Sandia National Laboratories                      csprin at ca.sandia.gov
Biosystems Research Department                    (925) 294-2143
P.O. Box 969, MS 9951                fax:         (925) 294-3020
Livermore, CA, 94551-0969

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list