Analysis of Metafrontier Models for Efficiency and Productivity
Overview
Implements metafrontier production function models for estimating technical efficiencies and technology gaps for groups of firms that face different restrictions of a common underlying metatechnology (group-specific technologies in the sense of Battese, Rao, and O'Donnell, 2004). Supports both stochastic frontier analysis (SFA) and data envelopment analysis (DEA) based metafrontiers. Includes the deterministic metafrontier of Battese, Rao, and O'Donnell (2004) doi:10.1023/B:PROD.0000012454.06094.29, the stochastic metafrontier of Huang, Huang, and Liu (2014) doi:10.1007/s11123-014-0402-2, and the metafrontier Malmquist productivity index of O'Donnell, Rao, and Battese (2008) doi:10.1007/s00181-007-0119-4. The deterministic metafrontier can be identified by either the minimum sum of absolute deviations (LP) or the minimum sum of squared deviations (QP) criterion. Additional features include panel SFA with time-varying inefficiency, bootstrap confidence intervals for technology gap ratios, a DEA poolability permutation test, latent class metafrontier estimation via the EM algorithm, Murphy-Topel corrected standard errors, convergence diagnostics, import of pre-fitted models from external estimation engines ('sfaR', 'frontier', 'Benchmarking'), and 'ggplot2' visualisation methods.
Bug fixes
- BC88/BC92 efficiencies are now evaluated on the log scale (
pnorm(log.p = TRUE)), with an asymptotic closed form in the far left tail of the conditional distribution. The previous natural-scale ratioPhi(mu*/sigma* - sigma*) / Phi(mu*/sigma*)could return 0,Inf, or values above one on platforms without extended-precision long doubles (the CRAN noLD additional check) when bothPhiterms were subnormal, which occurred in degenerate fits withsigma_unear zero. On standard platforms results are unchanged to near machine precision; in the affected tail region the new evaluation is also more accurate than the previous fallback to the JLMS value.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
- OK8 OK2026-04-22
Documentation
- Help pages
- 24 (1 internal)includes a package overview page
- Examples that run
- 74%17 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 17%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
PRs over time
Commits over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/iik1/metafrontier on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-04-10Pull request it wrote: opened by a project memberCommits: at least 22 crediting it in the message
- Claude Opus 4.621 commits · Apr 2026
- Claude Opus 5.51 commit · Sep 2026
Dependencies
Installing metafrontier adds 3 packages (1 with compiled code, 599 KB of source tarballs). Heaviest: lpSolveAPI 479 KB, numDeriv 74 KB, Formula 46 KB.
Code & Tests
People & History
Package metadata
- First published
- 2026-04-21
- Total releases
- 3 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 206 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("metafrontier")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.