Stochastic Frontier Analysis Routines
Overview
Maximum likelihood estimation for stochastic frontier analysis (SFA) of production (profit) and cost functions. The package includes the basic stochastic frontier for cross-sectional or pooled data with several distributions for the one-sided error term (i.e., Rayleigh, gamma, Weibull, lognormal, uniform, generalized exponential and truncated skewed Laplace), the latent class stochastic frontier model (LCM) as described in Dakpo et al. (2021) doi:10.1111/1477-9552.12422, for cross-sectional and pooled data, and the sample selection model as described in Greene (2010) doi:10.1007/s11123-009-0159-1, and applied in Dakpo et al. (2021) doi:10.1111/agec.12683. Several possibilities in terms of optimization algorithms are proposed.
BUG FIXES
- In tests
sfacrossreturns different output
***
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-27
- NOTE12 OK, 1 NOTE2026-08-20
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 24includes a package overview page
- Examples that run
- 55%12 run in a plain check · 10 never run
- Exported functions with examples
- 90%
- Documented parameters
- 99%
- Return-value docs
- 90%
- Help pages citing references
- 54%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/hdakpo/sfar on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing sfaR adds 40 packages (27 with compiled code, 22 MB of source tarballs). Heaviest: cubature 3.2 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
Datasets
People & History
Previously maintained by Yann Desjeux (0.0.91 to 0.1.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.0.1Latest
- RR 4.4.0 released · 2024-04-24
- 1.0.02023-07-04 · diff ↗ ·
added 6 exports
extract.sfacross, extract.sfalcmcross, extract.sfaselectioncross, logLik, sfalcmcross, sfaselectioncross - RR 4.3.0 released · 2023-04-21
- 0.1.12022-05-05 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-05-04 · diff ↗
- 0.0.912021-03-05
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-03-05
- Total releases
- 5 / 5 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 453 KB / 7 files
- Download size
- 667 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sfaR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.