Use predict.tree() with type="class" on the object returned by tree().
Then use that to construct a cross tabulation against the original data. If you
provide a reproducible example with data, I could be more specific.
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of jpara3
Sent: Wednesday, August 19, 2015 4:09 AM
To: r-help at r-project.org
Subject: [R] Confussion matrix in tree clasiffication
Hi there!
I want to create a confussion matrix after using the tree package to create
a clasiffication tree, but I?m not sure of how to create this matrix.
Can anyone please help me?
Thanks
Jes?s
-----
Guided Tours Basque Country
Guided tours in the three capitals of the Basque Country: Bilbao,
Vitoria-Gasteiz and San Sebastian, as well as in their provinces. Available
languages.
Travel planners for groups and design of tourist routes across the Basque
Country.
--
View this message in context:
http://r.789695.n4.nabble.com/Confussion-matrix-in-tree-clasiffication-tp4711269.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.