On 21.09.2012 11:49, agent dunham wrote:
Dear community,

I've an rpart object, and I know the CP I want.  I'd like to know if it's
possible also to fix the number of terminal nodes I want.

I don't know of any existing function, but you can write it yourself: All the information you need is available from the rpart object.

Uwe Ligges



Thanks in advance,  u...@host.com as u...@host.com



--
View this message in context: 
http://r.789695.n4.nabble.com/prune-in-rpart-choose-number-terminal-nodes-tp4643837.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
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.


______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to