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. Thanks in advance, user at host.com as user at 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.
prune in rpart: choose number terminal nodes
3 messages · agent dunham, Uwe Ligges, Brian Ripley
2 days later
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, user at host.com as user at 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 at 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.
On 23/09/2012 17:32, Uwe Ligges wrote:
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.
Up to a point. The pruning sequence does not include all possible numbers of 'terminal notes' (aka 'leaves').
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595