[R] classification tree out put

Denis White white.denis at epa.gov
Thu Jul 19 22:47:23 CEST 2001

This message was sent in html first time.  Sorry to non-html mail

> I'm attempting to classify data using tree(). summary(tree())
> that I have a very good classification rate. What I'd like to know is
> which tokens in the data set are correctly classified and which are

atree <- tree (some.dat)
misclass <- atree$y != atree$frame$yval[atree$where]

Denis White
   US EPA, 200 SW 35th St, Corvallis, Oregon, 97333 USA
   voice: 541.754.4476, email: white.denis at epa.gov
   web: www.epa.gov/wed/pages/staff/white/

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