Learn R Programming

PEAXAI (version 0.1.0)

data: Simulated efficiency dataset (100 DMUs)

Description

Dataset with 100 simulated decision-making units (DMUs) used to illustrate the basic workflow of PEAXAI in a simple single-input/single-output setting.

Usage

data(data)

Arguments

Format

A data.frame with 100 rows and 3 columns:

x1

Input of the DMU (e.g., resource use, cost or effort).

y

Observed output, potentially affected by technical inefficiency.

yD

Deterministic (theoretical) output on the efficient frontier.

Details

Each DMU uses one input x1 to produce an output y. The variable yD represents the theoretical output on the deterministic frontier, that is, the output level that would be observed in the absence of technical inefficiency.

The dataset is purely simulated and is intended for examples and vignettes. It contains 100 DMUs with heterogeneous input levels and corresponding output levels. The observed output y can be interpreted as y <= yD, where the gap between yD and y reflects technical inefficiency (plus possible noise, depending on how the data were generated).

Examples

Run this code
data(data)
str(data)
summary(data)

if (requireNamespace("ggplot2", quietly = TRUE)) {
  ggplot2::ggplot(data, ggplot2::aes(x = x1)) +
    ggplot2::geom_point(ggplot2::aes(y = y), alpha = 0.6) +
    ggplot2::geom_line(ggplot2::aes(y = yD), color = "red") +
    ggplot2::labs(
      x = "Input x1",
      y = "Output",
      title = "Simulated DMUs and theoretical frontier"
    ) +
    ggplot2::theme_minimal()
}

Run the code above in your browser using DataLab