I know that rpart has a complexity parameter that adjusts the number of nodes 
in a model. I also know that a loss function allows one to weight 
misclassifications of different types. However, some of my predictor variables 
are much more expensive dollar-wise to use than others. Is there a way to 
weight the predictor variables such that rpart will not use an expensive 
variable (or will only send limited fractions of the population to the node) if 
there is not a comparatively large decrease in misclassifications after 
splitting by that variable?

Thanks,
Lee

______________________________________________
R-help@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.

Reply via email to