efficiencyRFEAT: Efficiency Scores computed through a Random Forest +...

Description Usage Arguments Value Examples

View source: R/efficiencyRFEAT.R

Description

This function computes the efficiency scores for each DMU through a Random Forest + Efficiency Analysis Trees model and the Banker Charnes and Cooper mathematical programming model with output orientation. Efficiency level at 1.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
efficiencyRFEAT(
  data,
  x,
  y,
  object,
  digits = 3,
  FDH = TRUE,
  print.table = FALSE,
  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.

object

A RFEAT object.

digits

Decimal units for scores.

FDH

logical. If TRUE, FDH scores are computed.

print.table

logical. If TRUE, a summary descriptive table of the efficiency scores is displayed.

na.rm

logical. If TRUE, NA rows are omitted.

Value

A data.frame with the efficiency scores computed through a Random Forest + Efficiency Analysis Trees model. Optionally, a summary descriptive table of the efficiency scores can be displayed.

Examples

1
2
3
4
5
simulated <- X2Y2.sim(N = 50, border = 0.2)
RFEAT_model <- RFEAT(data = simulated, x = c(1,2), y = c(3, 4))

efficiencyRFEAT(data = simulated, x = c(1, 2), y = c(3, 4), object = RFEAT_model, 
                digits = 2, FDH = TRUE, na.rm = TRUE)

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