Re: [R] How to use classwt parameter option in RandomForest

2008-05-22 Thread Liaw, Andy
The weights given should correspond to the ordering of levels(y) where y contains the class labels. If in doubt, you can also give the classwt as a named vector (e.g., classwt=c(B=3, A=2, C=1)). Search in the R-help archive to see other options and why you probably shouldn't use classwt. Andy

[R] How to use classwt parameter option in RandomForest

2008-05-20 Thread Nagu
Hi, I am trying to model a dataset with the response variable Y, which has 6 levels { Great, Greater, Greatest, Weak, Weaker, Weakest}, and predictor variables X, with continuous and factor variables using random forests in R. The variable Y acts like an ordinal variable, but I recoded it as