[R] rpart question

From: Aimin Yan <aiminy_at_iastate.edu>
Date: Thu 25 Jan 2007 - 07:54:05 GMT

I make classification tree like this code p.t2.90 <- rpart(y~aa_three+bas+bcu+aa_ss, data=training,method="class",control=rpart.control(cp=0.0001))

Here I want to set weight for 4 predictors(aa_three,bas,bcu,aa_ss).

I know that there is a weight set-up in rpart. Can this set-up satisfy my need?

If so, could someone give me an example?


Aimin Yan

R-help@stat.math.ethz.ch 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. Received on Thu Jan 25 18:58:48 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 08:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.