Re: [R] anyway to force rpart() to include a specific predictor

2007-11-26 Thread Weiwei Shi
just my2cent: could you make a derived feature by including the desired predictor in each of features you use to present to rpart? (by the way, if I can understand your question right, I assume rpart picks only one predictor each time at each node) Best, Weiwei On 11/26/07, Wensui Liu <[EMAIL

[R] anyway to force rpart() to include a specific predictor

2007-11-26 Thread Wensui Liu
If I understand correctly, rpart() will pick predictor at each node automatically. I am wondering if there is a way to force rpart() including a specific predictor. The reason I am asking is that I'd like to use rpart() to detect interaction terms for some variables. Thanks. _