run_rf: Run a randomForest model with helpful defaults for this...

Description Usage Arguments Value

View source: R/model_building.R

Description

This convenience wrapper allows easy specification of different response and predictor variables.

Usage

1
2
run_rf(data, response, predictors, rownames = "painting_code", portion, tests,
  ntree = 2000, proximity = TRUE, localImp = TRUE, ...)

Arguments

data

Dataframe to model.

response

Quoted name of the response variable column.

predictors

A character vector of predictor variables. This will be combined with response in the format as.function(response ~ predictor[1] + predictor[2] + ...). The value of response will be removed from predictors if present.

rownames

Quoted name of the column containing names of observations.

ntree

Number of trees to build. Defaults to 2000.

proximity

Whether to save proximity data or not. Defaults to TRUE.

localImp

Whether to save local importance data. Defaults to TRUE.

...

Other arguments to pass to randomForest

Value

An object of class randomForest. See randomForest.


mdlincoln/dutchtabletops documentation built on May 22, 2019, 4:08 p.m.