[R] rpart question

Aimin Yan aiminy at iastate.edu
Thu Jan 25 08:54:05 CET 2007


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?

Thanks,

Aimin Yan



More information about the R-help mailing list