[R] random Forests

Michael Lynn Fugate fugate at kanab.c3.lanl.gov
Tue May 28 18:51:53 CEST 2002


I have a data set with 1000 observations and 260 predictors.  The
predictor variables are all ordinal.  There are 2 classes labeled as, F
and T with class proportions of 0.44 and 0.56, respectively.

In a call to the function randomForest() with mytry=1 and nodesize=1 and
ntree=100 the resulting classifier puts all observations in class T.
When I change nodesize to nodesize=5 I get the following error message:

 Error in array(rfout$treemap, dim = c(2, nrnodes, ntree)) :
	dim<- length of dims do not match the length of object

Higher values of nodesize also result in this error message but values
of nodesize less than 5 do not.

I'm using R-1.5.0 on a Linux box and I installed the randomForest package
during the week 13 May 2002.

Thanks in advance.



| Michael Fugate                         Phone:  (505) 667-0398  |
| Los Alamos National Laboratory         Fax:    (505) 665-5220  |
| Group: CCS-3,  Mail Stop: B265         e-mail: fugate at lanl.gov |
| Los Alamos, NM 87545                                           |

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list