Displaying 1 result from an estimated 1 matches for "myrf".
Did you mean:
mydf
2010 Dec 14
0
factor predictor using random forest
...ighly related to the binary response I am trying to predict.
Other 80 predictors are numeric. Totally I have 44 subjects. However, the
random forest returns the factor variable as the least important one based
on the decreased accuracy measurement. I specified the classification in
the way below:
myrf <- randomForest (disease ~ ., data = mydata, ntree = 500, importance =
T, do.trace = F, keep.forest = T)
disease is factor of "cases" and "controls". Are there any specific things I
need to do differently when a factor predictor is included?
Thank you very much,
Jing
[[...