agent dunham
2012-Sep-04 10:16 UTC
[R] predict rpart newdata - introduce only values variables used in the tree
Dear community, I've a tree which included at first 23 variables. Then I've pruned this tree, and there are only 8 variables involved. I'd like to predict and only introduce in newdata the values of these 8 variables involved. However, as the tree was built with the 23, it asked me for 15 values, even if it doesn't need them. Is there a way to introduce only this 8 values? Thanks in advance, show crosspide at hotmail.com as user at host.com -- View this message in context: http://r.789695.n4.nabble.com/predict-rpart-newdata-introduce-only-values-variables-used-in-the-tree-tp4642145.html Sent from the R help mailing list archive at Nabble.com.
RP
2012-Sep-05 10:47 UTC
[R] predict rpart newdata - introduce only values variables used in the tree
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.