erf_formula_prep: Make a formula for ERF use

View source: R/erf_formula_prep.R

erf_formula_prepR Documentation

Make a formula for ERF use

Description

Takes a column names and makes the RF model formula

Usage

erf_formula_prep(var, covariates, add.random = TRUE)

Arguments

var

A character string indicating the column name of the data frame that contains the number of interactions for the ERF to model; column should be a numeric column

covariates

A character vector indicating the column name(s) of the data frame that contain the covariates

add.random

A logical flag for adding a random variable named 'random' to the formula; needed for the ERF models

Value

A formula class object

Examples

erf_formula_prep('death',c('sarlaac','lightsaber','wookie','stormtrooper'))


zsiders/EnsembleRandomForests documentation built on Oct. 8, 2024, 11:41 p.m.