brifTree.formula {brif}R Documentation

Build a single brif tree taking a formula as input

Description

Build a single brif tree taking a formula as input

Usage

## S3 method for class 'formula'
brifTree(
  formula,
  data,
  subset,
  na.action = stats::na.pass,
  depth = 3,
  n_cuts = 2047,
  max_integer_classes = 20,
  max_factor_levels = 30,
  seed = 0,
  ...
)

Arguments

formula

an object of class "formula": a symbolic description of the model to be fitted.

data

an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which brif.formula is called.

subset

an optional vector specifying a subset (in terms of index numbers, not actual data) of observations to be used in the fitting process.

na.action

a function which indicates what should happen when the data contain NAs.

depth

a positive integer indicating the desired depth of the tree.

n_cuts

a positive integer indicating the maximum number of split points to generate on each numeric or integer variable. A large value is preferred for a single tree.

max_integer_classes

a positive integer. See brif.default for details.

max_factor_levels

a positive integer. See brif.default for details.

seed

a non-negative positive integer specifying the random number generator seed.

...

other relevant arguments.

Value

an object of class brif to be used by predict.brif.


[Package brif version 1.4.1 Index]