{
  "_id": "6a2122a1cd65a98ecbd1f8ed",
  "Package": "sfaR",
  "Title": "Stochastic Frontier Analysis Routines",
  "Version": "1.0.1.9000",
  "Authors@R": "c(\nperson(\"K Hervé\", \"Dakpo\", email = \"k-herve.dakpo@inrae.fr\", role = c(\"aut\", \"cre\")),\nperson(\"Yann\", \"Desjeux\", role = \"aut\"),\nperson(\"Arne\", \"Henningsen\", role = \"aut\"),\nperson(\"Laure\", \"Latruffe\", role = \"aut\")\n)",
  "Description": "Maximum likelihood estimation for stochastic frontier\nanalysis (SFA) of production (profit) and cost functions. The\npackage includes the basic stochastic frontier for\ncross-sectional or pooled data with several distributions for\nthe one-sided error term (i.e., Rayleigh, gamma, Weibull,\nlognormal, uniform, generalized exponential and truncated\nskewed Laplace), the latent class stochastic frontier model\n(LCM) as described in Dakpo et al. (2021)\n<doi:10.1111/1477-9552.12422>, for cross-sectional and pooled\ndata, and the sample selection model as described in Greene\n(2010) <doi:10.1007/s11123-009-0159-1>, and applied in Dakpo et\nal. (2021) <doi:10.1111/agec.12683>.  Several possibilities in\nterms of optimization algorithms are proposed.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/hdakpo/sfaR",
  "BugReports": "https://github.com/hdakpo/sfaR/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "Config/pak/sysreqs": "make texlive libssl-dev",
  "Repository": "https://hdakpo.r-universe.dev",
  "Date/Publication": "2026-05-05 09:35:00 UTC",
  "RemoteUrl": "https://github.com/hdakpo/sfar",
  "RemoteRef": "HEAD",
  "RemoteSha": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 06:54:22 UTC",
    "User": "root"
  },
  "Author": "K Hervé Dakpo [aut, cre],\nYann Desjeux [aut],\nArne Henningsen [aut],\nLaure Latruffe [aut]",
  "Maintainer": "K Hervé Dakpo <k-herve.dakpo@inrae.fr>",
  "MD5sum": "73bf4c952ea57b139db8ac45f9b8202c",
  "_user": "hdakpo",
  "_type": "src",
  "_file": "sfaR_1.0.1.9000.tar.gz",
  "_fileid": "b17a0a0b611674e75a11856b66540444ee1c78fb8abf430954aa2799ff49f30f",
  "_filesize": 1130288,
  "_sha256": "b17a0a0b611674e75a11856b66540444ee1c78fb8abf430954aa2799ff49f30f",
  "_created": "2026-06-04T06:54:22.000Z",
  "_published": "2026-06-04T07:00:49.605Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79465909299,
      "time": 274,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405021665"
    },
    {
      "job": 79465909243,
      "time": 298,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405027170"
    },
    {
      "job": 79465909273,
      "time": 188,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7404995192"
    },
    {
      "job": 79465909270,
      "time": 255,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405007718"
    },
    {
      "job": 79465361047,
      "time": 250,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404951156"
    },
    {
      "job": 79465909328,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404989041"
    },
    {
      "job": 79465909327,
      "time": 231,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405010473"
    },
    {
      "job": 79465909258,
      "time": 232,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7405011032"
    },
    {
      "job": 79465909310,
      "time": 232,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405011089"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hdakpo/sfar",
  "_commit": {
    "id": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
    "author": "Hervé Dakpo <k-herve.dakpo@inrae.fr>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #94 from hdakpo/main-improved\n\nMain improved",
    "time": 1777973700
  },
  "_maintainer": {
    "name": "K Hervé Dakpo",
    "email": "k-herve.dakpo@inrae.fr",
    "login": "hdakpo",
    "twitter": "@HDakpo",
    "description": "",
    "uuid": 29732089
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "cubature",
      "role": "Imports"
    },
    {
      "package": "fastGHQuad",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "marqLevAlg",
      "role": "Imports"
    },
    {
      "package": "maxLik",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "mnorm",
      "role": "Imports"
    },
    {
      "package": "nleqslv",
      "role": "Imports"
    },
    {
      "package": "plm",
      "role": "Imports"
    },
    {
      "package": "qrng",
      "role": "Imports"
    },
    {
      "package": "randtoolbox",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "texreg",
      "role": "Imports"
    },
    {
      "package": "trustOptim",
      "role": "Imports"
    },
    {
      "package": "ucminf",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    }
  ],
  "_owner": "hdakpo",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2026-19",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "hdakpo",
      "count": 159,
      "uuid": 29732089
    },
    {
      "user": "arne-henningsen",
      "count": 20,
      "uuid": 19424748
    },
    {
      "user": "ydesjeux",
      "count": 3,
      "uuid": 29707259
    }
  ],
  "_userbio": {
    "uuid": 29732089,
    "type": "user",
    "name": "Hervé Dakpo"
  },
  "_downloads": {
    "count": 893,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sfaR"
  },
  "_devurl": "https://github.com/hdakpo/sfar",
  "_searchresults": 87,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sfaR.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hdakpo/sfar",
  "_realowner": "hdakpo",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.91",
      "date": "2021-03-05"
    },
    {
      "version": "0.1.0",
      "date": "2021-05-04"
    },
    {
      "version": "0.1.1",
      "date": "2022-05-05"
    },
    {
      "version": "1.0.0",
      "date": "2023-07-04"
    },
    {
      "version": "1.0.1",
      "date": "2024-10-29"
    }
  ],
  "_exports": [
    "efficiencies",
    "extract.sfacross",
    "extract.sfalcmcross",
    "extract.sfaselectioncross",
    "ic",
    "lcmcross",
    "logLik",
    "marginal",
    "sfacross",
    "sfalcmcross",
    "sfaselectioncross",
    "skewnessTest"
  ],
  "_datasets": [
    {
      "name": "dairynorway",
      "title": "Data on Norwegian dairy farms",
      "object": "dairynorway",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "farmid",
        "year",
        "y1",
        "y2",
        "y3",
        "y4",
        "p1",
        "p2",
        "p3",
        "p4",
        "x1",
        "x2",
        "x3",
        "x4",
        "x5",
        "x6",
        "w1",
        "w2",
        "w3",
        "w4",
        "w5",
        "w6",
        "tc"
      ],
      "rows": 2727,
      "table": true,
      "tojson": true
    },
    {
      "name": "dairyspain",
      "title": "Data on Spanish dairy farms",
      "object": "dairyspain",
      "class": [
        "data.frame"
      ],
      "fields": [
        "FARM",
        "AGEF",
        "YEAR",
        "COWS",
        "LAND",
        "MILK",
        "LABOR",
        "FEED",
        "YIT",
        "X1",
        "X2",
        "X3",
        "X4",
        "X11",
        "X22",
        "X33",
        "X44",
        "X12",
        "X13",
        "X14",
        "X23",
        "X24",
        "X34",
        "YEAR93",
        "YEAR94",
        "YEAR95",
        "YEAR96",
        "YEAR97",
        "YEAR98"
      ],
      "rows": 1482,
      "table": true,
      "tojson": true
    },
    {
      "name": "electricity",
      "title": "Data on U.S. electric power generation",
      "object": "electricity",
      "class": [
        "data.frame"
      ],
      "fields": [
        "firm",
        "cost",
        "output",
        "lprice",
        "lshare",
        "cprice",
        "cshare",
        "fprice",
        "fshare"
      ],
      "rows": 123,
      "table": true,
      "tojson": true
    },
    {
      "name": "ricephil",
      "title": "Data on rice production in the Philippines",
      "object": "ricephil",
      "class": [
        "data.frame"
      ],
      "fields": [
        "YEARDUM",
        "FARMERCODE",
        "PROD",
        "AREA",
        "LABOR",
        "NPK",
        "OTHER",
        "PRICE",
        "AREAP",
        "LABORP",
        "NPKP",
        "OTHERP",
        "AGE",
        "EDYRS",
        "HHSIZE",
        "NADULT",
        "BANRAT"
      ],
      "rows": 344,
      "table": true,
      "tojson": true
    },
    {
      "name": "swissrailways",
      "title": "Data on Swiss railway companies",
      "object": "swissrailways",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "YEAR",
        "NI",
        "STOPS",
        "NETWORK",
        "NARROW_T",
        "RACK",
        "TUNNEL",
        "T",
        "Q2",
        "Q3",
        "CT",
        "PL",
        "PE",
        "PK",
        "VIRAGE",
        "LNCT",
        "LNQ2",
        "LNQ3",
        "LNNET",
        "LNPL",
        "LNPE",
        "LNPK",
        "LNSTOP",
        "MLNQ2",
        "MLNQ3",
        "MLNNET",
        "MLNPL",
        "MLNPK",
        "MLNSTOP"
      ],
      "rows": 605,
      "table": true,
      "tojson": true
    },
    {
      "name": "utility",
      "title": "Data on U.S. electricity generating plants",
      "object": "utility",
      "class": [
        "data.frame"
      ],
      "fields": [
        "firm",
        "year",
        "y",
        "regu",
        "k",
        "labor",
        "fuel",
        "wl",
        "wf",
        "wk",
        "tc"
      ],
      "rows": 791,
      "table": true,
      "tojson": true
    },
    {
      "name": "worldprod",
      "title": "Data on world production",
      "object": "worldprod",
      "class": [
        "data.frame"
      ],
      "fields": [
        "country",
        "code",
        "yr",
        "y",
        "k",
        "l",
        "h",
        "ly",
        "lk",
        "ll",
        "lh",
        "initStat"
      ],
      "rows": 2296,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "sfaR-package",
      "title": "sfaR: A package for estimating stochastic frontier models",
      "topics": [
        "sfaR-package",
        "sfaR",
        "_SFAR"
      ]
    },
    {
      "page": "coef",
      "title": "Extract coefficients of stochastic frontier models",
      "topics": [
        "coef",
        "coef.sfacross",
        "coef.sfalcmcross",
        "coef.sfaselectioncross",
        "coef.summary.sfacross",
        "coef.summary.sfalcmcross",
        "coef.summary.sfaselectioncross"
      ]
    },
    {
      "page": "dairynorway",
      "title": "Data on Norwegian dairy farms",
      "topics": [
        "dairynorway"
      ]
    },
    {
      "page": "dairyspain",
      "title": "Data on Spanish dairy farms",
      "topics": [
        "dairyspain"
      ]
    },
    {
      "page": "efficiencies",
      "title": "Compute conditional (in-)efficiency estimates of stochastic frontier models",
      "topics": [
        "efficiencies",
        "efficiencies.sfacross",
        "efficiencies.sfalcmcross",
        "efficiencies.sfaselectioncross"
      ]
    },
    {
      "page": "electricity",
      "title": "Data on U.S. electric power generation",
      "topics": [
        "electricity"
      ]
    },
    {
      "page": "extract",
      "title": "Extract frontier information to be used with *texreg* package",
      "topics": [
        "extract",
        "extract.sfacross",
        "extract.sfalcmcross",
        "extract.sfaselectioncross"
      ]
    },
    {
      "page": "fitted",
      "title": "Extract fitted values of stochastic frontier models",
      "topics": [
        "fitted",
        "fitted.sfacross",
        "fitted.sfalcmcross",
        "fitted.sfaselectioncross"
      ]
    },
    {
      "page": "ic",
      "title": "Extract information criteria of stochastic frontier models",
      "topics": [
        "ic",
        "ic.sfacross",
        "ic.sfalcmcross",
        "ic.sfaselectioncross"
      ]
    },
    {
      "page": "logLik",
      "title": "Extract log-likelihood value of stochastic frontier models",
      "topics": [
        "logLik",
        "logLik.sfacross",
        "logLik.sfalcmcross",
        "logLik.sfaselectioncross"
      ]
    },
    {
      "page": "marginal",
      "title": "Marginal effects of the inefficiency drivers in stochastic frontier models",
      "topics": [
        "marginal",
        "marginal.sfacross",
        "marginal.sfalcmcross",
        "marginal.sfaselectioncross"
      ]
    },
    {
      "page": "nobs",
      "title": "Extract total number of observations used in frontier models",
      "topics": [
        "nobs",
        "nobs.sfacross",
        "nobs.sfalcmcross",
        "nobs.sfaselectioncross"
      ]
    },
    {
      "page": "residuals",
      "title": "Extract residuals of stochastic frontier models",
      "topics": [
        "residuals",
        "residuals.sfacross",
        "residuals.sfalcmcross",
        "residuals.sfaselectioncross"
      ]
    },
    {
      "page": "ricephil",
      "title": "Data on rice production in the Philippines",
      "topics": [
        "ricephil"
      ]
    },
    {
      "page": "sfacross",
      "title": "Stochastic frontier estimation using cross-sectional data",
      "topics": [
        "bread.sfacross",
        "estfun.sfacross",
        "print.sfacross",
        "sfacross"
      ]
    },
    {
      "page": "sfalcmcross",
      "title": "Latent class stochastic frontier using cross-sectional data",
      "topics": [
        "bread.sfalcmcross",
        "estfun.sfalcmcross",
        "print.sfalcmcross",
        "sfalcmcross"
      ]
    },
    {
      "page": "sfaR-deprecated",
      "title": "Deprecated functions of sfaR",
      "topics": [
        "bread.lcmcross",
        "coef.lcmcross",
        "coef.summary.lcmcross",
        "efficiencies.lcmcross",
        "estfun.lcmcross",
        "fitted.lcmcross",
        "ic.lcmcross",
        "lcmcross",
        "logLik.lcmcross",
        "marginal.lcmcross",
        "nobs.lcmcross",
        "print.lcmcross",
        "print.summary.lcmcross",
        "residuals.lcmcross",
        "sfaR-deprecated",
        "summary.lcmcross",
        "vcov.lcmcross"
      ]
    },
    {
      "page": "sfaselectioncross",
      "title": "Sample selection in stochastic frontier estimation using cross-section data",
      "topics": [
        "bread.sfaselectioncross",
        "estfun.sfaselectioncross",
        "print.sfaselectioncross",
        "sfaselectioncross"
      ]
    },
    {
      "page": "skewnessTest",
      "title": "Skewness test for stochastic frontier models",
      "topics": [
        "skewnessTest"
      ]
    },
    {
      "page": "summary",
      "title": "Summary of results for stochastic frontier models",
      "topics": [
        "print.summary.sfacross",
        "print.summary.sfalcmcross",
        "print.summary.sfaselectioncross",
        "summary",
        "summary.sfacross",
        "summary.sfalcmcross",
        "summary.sfaselectioncross"
      ]
    },
    {
      "page": "swissrailways",
      "title": "Data on Swiss railway companies",
      "topics": [
        "swissrailways"
      ]
    },
    {
      "page": "utility",
      "title": "Data on U.S. electricity generating plants",
      "topics": [
        "utility"
      ]
    },
    {
      "page": "vcov",
      "title": "Compute variance-covariance matrix of stochastic frontier models",
      "topics": [
        "vcov",
        "vcov.sfacross",
        "vcov.sfalcmcross",
        "vcov.sfaselectioncross"
      ]
    },
    {
      "page": "worldprod",
      "title": "Data on world production",
      "topics": [
        "worldprod"
      ]
    }
  ],
  "_readme": "https://github.com/hdakpo/sfar/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "bdsmatrix",
    "codetools",
    "collapse",
    "cubature",
    "curl",
    "digest",
    "doParallel",
    "fastGHQuad",
    "foreach",
    "Formula",
    "generics",
    "hpa",
    "httr",
    "iterators",
    "jsonlite",
    "lattice",
    "lmtest",
    "marqLevAlg",
    "MASS",
    "Matrix",
    "maxLik",
    "mime",
    "miscTools",
    "mnorm",
    "nleqslv",
    "nlme",
    "openssl",
    "plm",
    "qrng",
    "R6",
    "randtoolbox",
    "rbibutils",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "rngWELL",
    "sandwich",
    "sys",
    "texreg",
    "trustOptim",
    "ucminf",
    "zoo"
  ],
  "_score": 5.893761762057943,
  "_indexed": true,
  "_nocasepkg": "sfar",
  "_universes": [
    "hdakpo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:57:50.000Z",
      "distro": "noble",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "87ad90f1219e700fa8c5682d1213a5b081932ddeca5bc085e6c98cc050dafd74",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:58:18.000Z",
      "distro": "noble",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "a16d1e1d14601e31ce9b726350b622582d784da93b113fe1654119a125ccabfc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:57:06.000Z",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "e00b54fb31fb110656219f47385bb1a53b9eb2cba8fc9641f543239200d6a4ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:57:25.000Z",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "484138afbc25196dec9edd056b75e916d4537eec51145408775a35cd37f4e8fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:57:51.000Z",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "422829d2bc266e6fa15b7201ed7e6361f21d28a7af5f6a99fb151c2128bdfa55",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:56:35.000Z",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "4a4b97f763dd01b519fced2987f0128172634e6d1fe9f9a4bc0a74cb6208b79a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:56:46.000Z",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "0b2bcf88d0b97c5f15ef26309c494b2e812fb47d21d258e2a9b6cd0d7471e070",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.1.9000",
      "date": "2026-06-04T06:56:26.000Z",
      "commit": "c16a1a56157ea154585fcb420cba21a74d5a3c88",
      "fileid": "6211077e420fbec9c8df886f8c70f50b3867d9587a20bee59decf642f1ae20ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hdakpo/actions/runs/26935855610"
    }
  ]
}