Re: [R] Subgroups definition with rpart

2014-01-16 Thread Prof Brian Ripley
Search for 'where' in ?rpart.object (linked from ?rpart). On 16/01/2014 08:50, Jérémy Lambert wrote: Hello everyone, I just completed a recursive pratitionning analysis, using rpart, and have a beautiful tree with 6 terminal nodes. Each terminal node containing a precise number of patients (

[R] Subgroups definition with rpart

2014-01-16 Thread Jérémy Lambert
Hello everyone, I just completed a recursive pratitionning analysis, using rpart, and have a beautiful tree with 6 terminal nodes. Each terminal node containing a precise number of patients (it's a clinical study), I'd like to create a new variable informing in which terminal node are locating