{
  "_id": "6ab4fca73d719c1f84098356",
  "Package": "metafrontier",
  "Type": "Package",
  "Title": "Analysis of Metafrontier Models for Efficiency and Productivity",
  "Version": "0.3.1.9000",
  "Authors@R": "c(\nperson(\"Erik\", \"Enstad\", email = \"erik.enstad@nhh.no\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0006-1053-3849\")))",
  "Description": "Implements metafrontier production function models for\nestimating technical efficiencies and technology gaps for\ngroups of firms that face different restrictions of a common\nunderlying metatechnology (group-specific technologies in the\nsense of Battese, Rao, and O'Donnell, 2004). Supports both\nstochastic frontier analysis (SFA) and data envelopment\nanalysis (DEA) based metafrontiers. Includes the deterministic\nmetafrontier of Battese, Rao, and O'Donnell (2004)\n<doi:10.1023/B:PROD.0000012454.06094.29>, the stochastic\nmetafrontier of Huang, Huang, and Liu (2014)\n<doi:10.1007/s11123-014-0402-2>, and the metafrontier Malmquist\nproductivity index of O'Donnell, Rao, and Battese (2008)\n<doi:10.1007/s00181-007-0119-4>. The deterministic metafrontier\ncan be identified by either the minimum sum of absolute\ndeviations (LP) or the minimum sum of squared deviations (QP)\ncriterion. Additional features include panel SFA with\ntime-varying inefficiency, bootstrap confidence intervals for\ntechnology gap ratios, a DEA poolability permutation test,\nlatent class metafrontier estimation via the EM algorithm,\nMurphy-Topel corrected standard errors, convergence\ndiagnostics, import of pre-fitted models from external\nestimation engines ('sfaR', 'frontier', 'Benchmarking'), and\n'ggplot2' visualisation methods.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "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-09-24 10:13:34 UTC",
  "RemoteUrl": "https://github.com/iik1/metafrontier",
  "RemoteRef": "HEAD",
  "RemoteSha": "3be4493d704664f03617bba9c95f603af94bc165",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-24 10:21:22 UTC",
    "User": "root"
  },
  "Author": "Erik Enstad [aut, cre] (ORCID: <https://orcid.org/0009-0006-1053-3849>)",
  "Maintainer": "Erik Enstad <erik.enstad@nhh.no>",
  "_user": "iik1",
  "_type": "src",
  "_file": "metafrontier_0.3.1.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/8016e081259ac40667d24deafd60aa69cbe27b41cbfa0b4e826ffd957fe14a50",
  "_filesize": 609836,
  "_sha256": "8016e081259ac40667d24deafd60aa69cbe27b41cbfa0b4e826ffd957fe14a50",
  "_expires": "2027-01-02T10:34:13.000Z",
  "_created": "2026-09-24T10:21:22.000Z",
  "_published": "2026-09-24T10:34:15.196Z",
  "_jobs": [
    {
      "job": 107591193533,
      "time": 236,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10802219381"
    },
    {
      "job": 107591193522,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10803040228"
    },
    {
      "job": 107591193518,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10802383706"
    },
    {
      "job": 107591193655,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10802009749"
    },
    {
      "job": 107589945816,
      "time": 234,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10802930069"
    },
    {
      "job": 107591193537,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10802805925"
    },
    {
      "job": 107591193659,
      "time": 160,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10802422159"
    },
    {
      "job": 107591193665,
      "time": 159,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10802388665"
    },
    {
      "job": 107591193545,
      "time": 181,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10802860820"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744",
  "_status": "success",
  "_upstream": "https://github.com/iik1/metafrontier",
  "_commit": {
    "id": "3be4493d704664f03617bba9c95f603af94bc165",
    "author": "iik1 <eenstad@live.no>",
    "committer": "iik1 <116549631+iik1@users.noreply.github.com>",
    "message": "Test sfaR sigma extraction for every udist; drop dead lnsigmaV lookup\n\n- .extract_sfacross(): remove the lookup of \"lnsigmaV\"/\"lnSigmaV\" and\n  \"lnsigmaU\"/\"lnSigmaU\". No sfaR release on CRAN (0.0.91 to 1.0.1) uses\n  these names: all report log variances as \"Zv_*\"/\"Zu_*\", which the\n  extractor already reads via exp(coef / 2). The comment no longer\n  implies only sfaR 1.x uses that convention.\n- Regression test: sigma_v and sigma_u from engine = \"sfaR\" and from\n  models = imports of sfacross fits equal\n  exp(coef(fit)[c(\"Zv_(Intercept)\", \"Zu_(Intercept)\")] / 2) for\n  udist \"hnormal\", \"tnormal\" and \"exponential\". It fails with NA on the\n  pre-c37ea2a extractor.\n- NEWS: the existing entry now states that every sfaR release was\n  affected, not only 1.x, and that models = imports are covered.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n",
    "time": 1790244814
  },
  "_maintainer": {
    "name": "Erik Enstad",
    "email": "erik.enstad@nhh.no",
    "orcid": "0009-0006-1053-3849"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "lpSolveAPI",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sfaR",
      "role": "Suggests"
    },
    {
      "package": "frontier",
      "role": "Suggests"
    },
    {
      "package": "Benchmarking",
      "role": "Suggests"
    },
    {
      "package": "quadprog",
      "role": "Suggests"
    },
    {
      "package": "plm",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    }
  ],
  "_owner": "iik1",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-15",
      "n": 15
    },
    {
      "week": "2026-16",
      "n": 8
    },
    {
      "week": "2026-29",
      "n": 4
    },
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.3.0",
      "date": "2026-07-15"
    },
    {
      "name": "v0.3.1",
      "date": "2026-08-10"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "iik1",
      "count": 32,
      "uuid": 116549631
    }
  ],
  "_userbio": {
    "uuid": 116549631,
    "type": "user",
    "name": "iik1",
    "followers": 0
  },
  "_downloads": {
    "count": 296,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/metafrontier"
  },
  "_devurl": "https://github.com/iik1/metafrontier",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/metafrontier.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/iik1/metafrontier",
  "_realowner": "iik1",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.2",
      "date": "2026-04-21"
    },
    {
      "version": "0.3.0",
      "date": "2026-07-15"
    },
    {
      "version": "0.3.1",
      "date": "2026-08-19"
    }
  ],
  "_exports": [
    "as_metafrontier_model",
    "boot_tgr",
    "check_convergence",
    "efficiencies",
    "latent_class_metafrontier",
    "malmquist_meta",
    "metafrontier",
    "poolability_test",
    "select_n_classes",
    "simulate_metafrontier",
    "simulate_panel_metafrontier",
    "technology_gap_ratio",
    "tgr_summary"
  ],
  "_help": [
    {
      "page": "as_metafrontier_model",
      "title": "Convert a Fitted Frontier Model to Metafrontier Format",
      "topics": [
        "as_metafrontier_model"
      ]
    },
    {
      "page": "autoplot.boot_tgr",
      "title": "Autoplot Method for Bootstrap TGR Objects",
      "topics": [
        "autoplot.boot_tgr"
      ]
    },
    {
      "page": "autoplot.malmquist_meta",
      "title": "Autoplot Method for Malmquist Meta Objects",
      "topics": [
        "autoplot.malmquist_meta"
      ]
    },
    {
      "page": "autoplot.metafrontier",
      "title": "Autoplot Method for Metafrontier Objects",
      "topics": [
        "autoplot.metafrontier"
      ]
    },
    {
      "page": "boot_tgr",
      "title": "Bootstrap Confidence Intervals for the Technology Gap Ratio",
      "topics": [
        "boot_tgr"
      ]
    },
    {
      "page": "check_convergence",
      "title": "Check Convergence of All Estimation Stages",
      "topics": [
        "check_convergence",
        "check_convergence.lc_metafrontier",
        "check_convergence.malmquist_meta",
        "check_convergence.metafrontier"
      ]
    },
    {
      "page": "coef.metafrontier",
      "title": "Extract Coefficients from a Metafrontier Model",
      "topics": [
        "coef.metafrontier"
      ]
    },
    {
      "page": "confint.metafrontier",
      "title": "Confidence Intervals for Metafrontier Coefficients",
      "topics": [
        "confint.metafrontier"
      ]
    },
    {
      "page": "efficiencies",
      "title": "Extract Efficiency Scores from a Metafrontier Model",
      "topics": [
        "efficiencies",
        "efficiencies.metafrontier"
      ]
    },
    {
      "page": "latent_class_metafrontier",
      "title": "Latent Class Metafrontier",
      "topics": [
        "latent_class_metafrontier"
      ]
    },
    {
      "page": "malmquist_meta",
      "title": "Metafrontier Malmquist Productivity Index",
      "topics": [
        "malmquist_meta"
      ]
    },
    {
      "page": "metafrontier",
      "title": "Estimate a Metafrontier Production Function",
      "topics": [
        "metafrontier"
      ]
    },
    {
      "page": "plot.metafrontier",
      "title": "Plot a Metafrontier Object",
      "topics": [
        "plot.metafrontier"
      ]
    },
    {
      "page": "poolability_test",
      "title": "Test Poolability of Group Frontiers",
      "topics": [
        "poolability_test"
      ]
    },
    {
      "page": "predict.metafrontier",
      "title": "Predict Frontier Values from a Metafrontier Model",
      "topics": [
        "predict.metafrontier"
      ]
    },
    {
      "page": "print.metafrontier",
      "title": "Print a Metafrontier Object",
      "topics": [
        "print.metafrontier"
      ]
    },
    {
      "page": "select_n_classes",
      "title": "Select Number of Latent Classes via BIC",
      "topics": [
        "select_n_classes"
      ]
    },
    {
      "page": "simulate_metafrontier",
      "title": "Simulate Metafrontier Data",
      "topics": [
        "simulate_metafrontier"
      ]
    },
    {
      "page": "simulate_panel_metafrontier",
      "title": "Simulate Panel Metafrontier Data",
      "topics": [
        "simulate_panel_metafrontier"
      ]
    },
    {
      "page": "summary.metafrontier",
      "title": "Summary of a Metafrontier Model",
      "topics": [
        "summary.metafrontier"
      ]
    },
    {
      "page": "technology_gap_ratio",
      "title": "Extract Technology Gap Ratios",
      "topics": [
        "technology_gap_ratio"
      ]
    },
    {
      "page": "tgr_summary",
      "title": "Summary of Technology Gap Ratios",
      "topics": [
        "tgr_summary"
      ]
    },
    {
      "page": "vcov.metafrontier",
      "title": "Variance-Covariance Matrix for Metafrontier Coefficients",
      "topics": [
        "vcov.metafrontier"
      ]
    }
  ],
  "_readme": "https://github.com/iik1/metafrontier/raw/HEAD/README.md",
  "_rundeps": [
    "Formula",
    "lpSolveAPI",
    "numDeriv"
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to metafrontier",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is a metafrontier?",
        "Quick start",
        "Simulate data",
        "Estimate the metafrontier",
        "Deterministic SFA metafrontier (Battese, Rao, and O'Donnell, 2004)",
        "Stochastic metafrontier (Huang, Huang, and Liu, 2014)",
        "DEA-based metafrontier",
        "Extracting results",
        "Efficiency scores",
        "Technology gap ratio",
        "Coefficients",
        "Model information",
        "Visualisation",
        "TGR distributions",
        "Efficiency scatter",
        "Efficiency decomposition",
        "Hypothesis testing",
        "Poolability test",
        "Convergence diagnostics",
        "Inefficiency distributions",
        "Comparing true and estimated values",
        "Panel SFA Metafrontier",
        "Bootstrap Confidence Intervals for TGR",
        "Murphy-Topel Variance Correction",
        "Latent Class Metafrontier",
        "Directional Distance Functions (DDF)",
        "References"
      ],
      "created": "2026-04-10 14:37:25",
      "modified": "2026-09-23 13:35:35",
      "commits": 4
    },
    {
      "source": "malmquist.Rmd",
      "filename": "malmquist.html",
      "title": "Metafrontier Malmquist Productivity Index",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "The three-way decomposition",
        "Simulating panel data",
        "Computing the index",
        "Detailed results",
        "Interpreting the decomposition",
        "Within-group vs metafrontier Malmquist",
        "Technology gap dynamics",
        "Returns to scale assumptions",
        "Using real-world panel data",
        "Caveats",
        "Interpretation of the index",
        "Cross-period infeasibility",
        "Firm matching",
        "SFA-based index",
        "References"
      ],
      "created": "2026-04-11 11:00:34",
      "modified": "2026-07-15 10:06:39",
      "commits": 2
    },
    {
      "source": "methods.Rmd",
      "filename": "methods.html",
      "title": "Metafrontier Methods: Theory and Computation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. The metafrontier framework",
        "1.1 Group-specific stochastic frontiers",
        "1.2 The metafrontier",
        "1.3 The efficiency decomposition",
        "2. Deterministic metafrontier (Battese, Rao, and O'Donnell, 2004)",
        "2.1 Estimation",
        "2.2 Properties",
        "2.3 Example",
        "3. Stochastic metafrontier (Huang, Huang, and Liu, 2014)",
        "3.1 Estimation",
        "3.2 Advantages over the deterministic approach",
        "3.3 Caveat: the generated-regressor problem",
        "3.4 Example",
        "3.5 A note on TGR values",
        "4. DEA-based metafrontier",
        "4.1 Approach",
        "4.2 Returns to scale",
        "5. Comparing methods",
        "6. Choosing a method: practical guidance",
        "7. Testing for technology heterogeneity",
        "8. Simulation for Monte Carlo studies",
        "References"
      ],
      "created": "2026-04-10 14:37:25",
      "modified": "2026-07-15 10:06:39",
      "commits": 3
    }
  ],
  "_score": 4.8750612633917,
  "_indexed": true,
  "_nocasepkg": "metafrontier",
  "_universes": [
    "iik1"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:24:39.000Z",
      "distro": "resolute",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/6611689e041487c9db2411b7fd7477ebd9806ed285584c37f684755a530f6ef9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:23:48.000Z",
      "distro": "resolute",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/e7bc3bee57514345942c0e5adeaab77b5afe45db42f72bf6d1c09b8ba562d013",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:23:44.000Z",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/c00965e1dddb54f87096764105a49854d60f73237088ac8fdd5983969511591e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:32:42.000Z",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/acf41a2b585d1e32bc2d6b33c1662f230d0a77e015149d35c0257aa24fe6b8f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:23:49.000Z",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/1d4dc23141956c438d4f55a265c4e81f33b8c64a3caf5b63ba706e46c000108e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:22:39.000Z",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/d063958024d857bd984fe5de30dd290b1e105e3fe1de6af9f49c990b0a342c7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:22:45.000Z",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/6b0e689a5e47c6b52dc2f75d68c3de2e643f0a2412e05b33e3dc2b1ff6f3a899",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1.9000",
      "date": "2026-09-24T10:22:54.000Z",
      "commit": "3be4493d704664f03617bba9c95f603af94bc165",
      "fileid": "https://r2.ropensci.org/81b3da13374839b925368a0185e18d7ead35a72e0ccec917a669db7e6b37236f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/iik1/actions/runs/35986363744"
    }
  ]
}