Package: metafrontier Type: Package Title: Analysis of Metafrontier Models for Efficiency and Productivity Version: 0.3.0 Authors@R: c( person("Erik", "Enstad", email = "erik.enstad@nhh.no", role = c("aut", "cre"), comment = c(ORCID = "0009-0006-1053-3849"))) Description: 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) , the stochastic metafrontier of Huang, Huang, and Liu (2014) , and the metafrontier Malmquist productivity index of O'Donnell, Rao, and Battese (2008) . 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. License: GPL (>= 3) Encoding: UTF-8 RoxygenNote: 7.3.3 Depends: R (>= 4.0.0) Imports: stats, graphics, grDevices, Formula, numDeriv, lpSolveAPI, methods Suggests: testthat (>= 3.0.0), knitr, rmarkdown, sfaR, frontier, Benchmarking, quadprog, plm, ggplot2, parallel VignetteBuilder: knitr URL: https://github.com/iik1/metafrontier BugReports: https://github.com/iik1/metafrontier/issues Config/testthat/edition: 3 Repository: https://iik1.r-universe.dev Date/Publication: 2026-07-15 12:58:45 UTC RemoteUrl: https://github.com/iik1/metafrontier RemoteRef: HEAD RemoteSha: 8e8d0b750d1fcaf11e5efc0747b780601e1ab92d NeedsCompilation: no Packaged: 2026-07-15 15:20:04 UTC; root Author: Erik Enstad [aut, cre] (ORCID: ) Maintainer: Erik Enstad