ARBOL<-tree(PRECIO~CILINDRAJE_DEL_MOTOR+MODELO,data=CARROST)
ARBOL
plot(ARBOL)
text(ARBOL,cex=0.9)
este es el código que utilizamos las variables cilindraje y modelo son
categóricas transformadas por que si utilizamos las varibales como factor
no las reconoce
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.