Stochastic Data Envelopment Analysis with R
SdeaR is an open-source R package for Stochastic Data Envelopment Analysis (SDEA) based on chance-constrained programming.
Unlike conventional DEA approaches that assume deterministic input/output data, SdeaR explicitly incorporates uncertainty by modelling inputs and outputs as multivariate normally distributed random variables.
The package provides a comprehensive framework for estimating stochastic efficiency under alternative model specifications, including:
with support for:
Data Envelopment Analysis (DEA) is a widely used nonparametric methodology for measuring the relative efficiency of homogeneous decision-making units (DMUs).
Classical DEA assumes exact observations. However, many real-world datasets contain measurement uncertainty, noise, or stochastic variability.
SdeaR fills an important gap in the DEA software ecosystem by providing a robust and user-friendly implementation of chance-constrained DEA models for stochastic data.
Install from CRAN:
install.packages("SdeaR")
Development version from GitHub:
install.packages("remotes")
# remotes::install_github("vjbolos/SdeaR")
install.packages("SdeaR", repos = c('https://vjbolos.r-universe.dev', 'https://cloud.r-project.org'))
Load package:
library(SdeaR)
library(deaR)
The standard workflow consists of:
deaR
make_deadata_stoch()
Using the classical Program Follow Through dataset:
library(SdeaR)
library(deaR)
data("PFT1981")
# Select Program Follow Through sites
PFT <- PFT1981[1:49, ]
# Create deterministic DEA data
PFT <- make_deadata(PFT, ni = 5, no = 3)
# Define stochastic output variances
c <- 0.5
var_output <- matrix(c^2, nrow = 3, ncol = 49)
# Create stochastic dataset
PFT_stoch <- make_deadata_stoch(
datadea = PFT,
var_output = var_output
)
# Run radial stochastic DEA model
results <- modelstoch_radial(PFT_stoch)
# Extract efficiencies
efficiencies(results)
make_deadata_stoch()Constructs stochastic DEA datasets from deterministic deaR objects and covariance specifications.
Supports:
modelstoch_radial()modelstoch_radial_supereff()Implements chance-constrained radial DEA models and super-efficiency extensions.
modelstoch_dir()modelstoch_dir_dd()Supports:
modelstoch_additive()modelstoch_additive_p()modelstoch_addsupereff()Includes:
Full reference manual:
https://cran.r-project.org/package=SdeaR
Package PDF manual:
https://cran.r-project.org/web/packages/SdeaR/SdeaR.pdf
All models assume:
This allows explicit efficiency analysis under uncertainty while preserving tractable optimization formulations.
R >= 3.5
Depends on:
deaRPlatform-independent and tested on:
If you use SdeaR in academic work, please cite:
Bolós, V.J., Coll-Serrano, V., & Benítez, R. (2026)
SdeaR: Stochastic Data Envelopment Analysis. R package version 1.0.2.
The package extends previous work on:
and complements the deterministic DEA package:
deaRGPL-3
Vicente J. Bolós
Department of Business Mathematics
University of Valencia
Vicente Coll-Serrano
Department of Applied Economics
University of Valencia
Rafael Benítez
Department of Business Mathematics
University of Valencia
Questions and bug reports:
GitHub issues: