Skip to content

Stochastic Frontier Analysis Routines

2packages dependsuggested by 1
9.2Kdownloads / year
12.6%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.1

BUG FIXES

  • In tests sfacross returns different output

***

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.1 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-27
  • NOTE12 OK, 1 NOTE2026-08-20
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 467 wordsVignettesNoNEWSYes · 100% structured · mentions 1.0.1Citation fileYes · computed when R runs itWebsitenot declared in DESCRIPTION
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

9.2K
CRAN downloads in the past year
Rank #5,146 · ~25/day · ~766/mo
Daily download trend is not available in this view yet.
72030 days
1.6K90 days
9.2K1 year
Compare downloads with other packages →
Also on94 r2u4 autocran

Repository

6Stars
3Forks
47Open issues
0Open PRs
2Releases
182Commits
3Commit identities
License file reads as GPL-3.0 · 182 commits · Last activity 2026-05-05 · 0% stars, 30d · Default branch at 1.0.1.9000, ahead of CRAN 1.0.1 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-01-02 · 42026-07-07 · 6
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Depends 1 · Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (4)
Author, Maintainer since 1.0.0 (2023)
Author · added in 1.0.0

Previously maintained by Yann Desjeux (0.0.91 to 0.1.1).

Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.1Latest
    record
    2024-10-29 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.0
    record
    2023-07-04 · diff ↗ ·
    added 6 exports
    extract.sfacross, extract.sfalcmcross, extract.sfaselectioncross, logLik, sfalcmcross, sfaselectioncross
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1
    record
    2022-05-05 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-05-04 · diff ↗
  • 0.0.91
    record
    2021-03-05
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sfaR version 1.0.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy