search for: mysampsize

Displaying 1 result from an estimated 1 matches for "mysampsize".

2008 Mar 09
1
sampsize in Random Forests
...en 1-100. This information is stored in the vector studySites. I want to run randomForests using stratified sampling, so I chose the option strata = factor(studySites) But I am not sure how to control the number of samples taken from each study site. I tried to use 10 points from each study site: mySampSize = rep(10, 100) So my function call looks like: RF = randomForest(myClass~., data=myData, mtry=5, importance=TRUE, strata = factor(studySites), sampsize=mySampSize) But randomForest gives me the following error: Error in randomForest.default(m, y, ...) : sampsize can not be larger than class frequ...