Skip to contents

Calculate scale efficiency from a set of inputs and outputs and return a data.frame

Usage

compute_scale_efficiency(x, y, orientation = c("in", "out"), digits = NULL)

Arguments

x

A matrix of inputs, created with create_matrix

y

A matrix of outputs, created with create_matrix

orientation

in for input oriented models or out for output oriented

digits

An integer with the number of digits to round to. If NULL the values are kept unrounded.

Value

A data frame containing the efficiency scores for CRS, VRS, the Scale Efficiency, the VRS to NIRS ratio, and a recommendation on whether to increase or decrease the size of the DMU.

Examples

# Create matrices with random values
inputs <- matrix(runif(10, 1, 10), ncol = 2)
outputs <- matrix(runif(10, 1, 10), ncol = 2)
# Compute scale efficiency
res <- compute_scale_efficiency(
  inputs, outputs, orientation = 'out', digits = 2)