Description Usage Arguments Examples
View source: R/runRandomForest.R
This function takes the output of iterVarSelRF and runs a random forest.
| 1 2 3 4 5 6 7 | runRandomForest(
  indVar,
  depVar,
  ntree = 100,
  importance = TRUE,
  proximity = TRUE
)
 | 
| indVar | independent variables | 
| depVar | dependent variable | 
| ntree | to be passed to randomForest. Had trouble getting ... to work with the snowfall wrapper function. This was a quick hack. | 
| importance | to be passed to randomForest. Had trouble getting ... to work with the snowfall wrapper function. This was a quick hack. | 
| proximity | to be passed to randomForest. Had trouble getting ... to work with the snowfall wrapper function. This was a quick hack. | 
| 1 2 3 4 5 | data(LakeTrophicModelling)
x2<-iterVarSelRF(ltmData[predictors_gis],ltmData$TS_CHLA_4,10,4,ntree=10,ntreeIterat=5,
vars.drop.frac=NULL,vars.drop.num=1,time=FALSE)
x2_vars<-unique(unlist(x2))
gis_ts4_rf<-runRandomForest(ltmData[x2_vars],ltmData$TS_CHLA_4, ntree=10,importance=TRUE,proximity=TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.