EAT: Efficiency Analysis Trees

Description Usage Arguments Details Value References Examples

View source: R/EAT.R

Description

This function estimates a stepped production frontier through regression trees.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
EAT(
  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.

Details

The EAT function generates a regression tree model based on CART \insertCitebreiman1984eat under a new approach that guarantees obtaining a stepped production frontier that fulfills the property of free disposability. This frontier shares the aforementioned aspects with the FDH frontier \insertCitedeprins1984eat but enhances some of its disadvantages such as the overfitting problem or the underestimation of technical inefficiency. More details in \insertCiteesteve2020;textualeat.

Value

An EAT object containing:

References

\insertRef

breiman1984eat

\insertRefdeprins1984eat

\insertRefesteve2020eat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# ====================== #
# Single output scenario #
# ====================== #

simulated <- Y1.sim(N = 50, nX = 3)
EAT(data = simulated, x = c(1, 2, 3), y = 4, numStop = 10, fold = 5, max.leaves = 6)

# ====================== #
#  Multi output scenario #
# ====================== #

simulated <- X2Y2.sim(N = 50, border = 0.1)
EAT(data = simulated, x = c(1,2), y = c(3, 4), numStop = 10, fold = 7, max.depth = 7)

MiriamEsteve/EAT documentation built on Jan. 18, 2022, 6:55 p.m.