runRandomForest: runRandomForest

Description Usage Arguments Examples

View source: R/runRandomForest.R

Description

This function takes the output of iterVarSelRF and runs a random forest.

Usage

1
2
3
4
5
6
7
runRandomForest(
  indVar,
  depVar,
  ntree = 100,
  importance = TRUE,
  proximity = TRUE
)

Arguments

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.

Examples

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)

USEPA/LakeTrophicModelling documentation built on Oct. 15, 2020, 4:13 p.m.