[R] predict rpart newdata - introduce only values variables used in the tree

RP rdporto1 at gmail.com
Wed Sep 5 12:47:02 CEST 2012


agent dunham <crosspide <at> hotmail.com> writes:

> I've a tree which included at first 23 variables. Then I've pruned this
> tree, and there are only 8 variables involved. 

Are you sure the others are not being considered as surrogate variables?

> Is there a way to introduce only this 8 values?

No. Why? See my previous answer.




More information about the R-help mailing list