preProcess {eat}R Documentation

Data Preprocessing for Efficiency Analysis Trees

Description

This function arranges the data in the required format and displays error messages.

Usage

preProcess(
  data,
  x,
  y,
  numStop = 5,
  fold = 5,
  max.depth = NULL,
  max.leaves = NULL,
  na.rm = TRUE
)

Arguments

data

data.frame or matrix containing the variables in the model.

x

Column input indexes in data.

y

Column output indexes in data.

numStop

Minimum number of observations in a node for a split to be attempted.

fold

Set of number of folds in which the dataset to apply cross-validation during the pruning is divided.

max.depth

Depth of the tree.

max.leaves

Maximum number of leaf nodes.

na.rm

logical. If TRUE, NA rows are omitted.

Value

It returns a data.frame in the required format.


[Package eat version 0.1.4 Index]