Skip to content

brglm2

1.1.1Package record

Bias Reduction in Generalized Linear Models

14packages dependsuggested by 14
142.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Estimation and inference from generalized linear models based on various methods for bias reduction and maximum penalized likelihood with powers of the Jeffreys prior as penalty. The 'brglmFit()' fitting method can achieve reduction of estimation bias by solving either the mean bias-reducing adjusted score equations in Firth (1993) doi:10.1093/biomet/80.1.27 and Kosmidis and Firth (2009) doi:10.1093/biomet/asp055, or the median bias-reducing adjusted score equations in Kenne et al. (2017) doi:10.1093/biomet/asx046, or through the direct subtraction of an estimate of the bias of the maximum likelihood estimator from the maximum likelihood estimates as in Cordeiro and McCullagh (1991) https://www.jstor.org/stable/2345592. See Kosmidis et al (2020) doi:10.1007/s11222-019-09860-6 for more details. Estimation in all cases takes place via a quasi Fisher scoring algorithm, and S3 methods for the construction of of confidence intervals for the reduced-bias estimates are provided. In the special case of generalized linear models for binomial and multinomial responses (both ordinal and nominal), the adjusted score approaches to mean and media bias reduction have been found to return estimates with improved frequentist properties, that are also always finite, even in cases where the maximum likelihood estimates are infinite (e.g. complete and quasi-complete separation; see Kosmidis and Firth, 2020 doi:10.1093/biomet/asaa052, for a proof for mean bias reduction in logistic regression). The 'mdyplFit()' fitting method fits logistic regression models using maximum Diaconis-Ylvisaker prior penalized likelihood, which also guarantees finite estimates. High-dimensionality corrections under proportional asymptotics can be applied to the resulting objects; see Sterzinger and Kosmidis (2024) doi:10.48550/arXiv.2311.07419 for details.

Changes in 1.1.1

Bug fixes

  • Added ... in mdyplControl() to allow for tol and wtol arguments in glm.fit().
  • Fixed a bug where offsets were ignored in summary.mdyplFit().
  • Fixed a bug in vcov.bracl() that returned incorrect covariances between coefficients for adjacent category logit models without proportional odds.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.0 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-10-15
  • ERROR8 OK, 3 NOTE, 2 ERROR2026-09-18
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.1
READMEYes · 3,930 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 1.1.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
44includes a package overview page
Examples that run
68%13 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran) · 2 hold no code
Exported functions with examples
59%
Documented parameters
98%
Return-value docs
47%
Help pages citing references
50%

Downloads

142.9K
CRAN downloads in the past year
Rank #1,044 · ~392/day · ~11.9K/mo
Daily download trend is not available in this view yet.
13.7K30 days
37.2K90 days
142.9K1 year
Compare downloads with other packages →
Also on3.9K r2u33 autocran5.7K conda_forge76 c2d4u

Repository

38Stars
13Forks
3Open issues
1Open PRs
16Releases
737Commits
6Commit identities
estimationalgorithmsrbias-reductionglmrstatsregression-algorithmsregression
737 commits · Last activity 2026-10-12 · +2.7% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
74%
Median days to close, 50 most recently updated closed issues
20
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-13 · 312026-10-09 · 38
PracticesBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/ikosmidis/brglm2 on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (1)
Code of conduct
Docs source (1)
README.Rmd
Coverage (1)
Coverage reporting
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing brglm2 adds 4 packages (2 with compiled code, 365 KB of source tarballs). Heaviest: enrichwith 103 KB, nleqslv 97 KB, statmod 91 KB.

Depends (1)
R >= 3.5
Imports (9)
MASSstatsMatrixgraphicsnnetenrichwithnumDerivstatmodnleqslv
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
14direct
2indirect
Depends 3 · Imports 11
Suggested by 14
Show all 28 packagesHide all 28 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (6)
Author, Maintainer since 0.1.3 (2017)
Author · added in 0.1.4
Contributor · added in 1.0.0
Contributor · added in 0.1.4
Contributor · added in 0.1.4
Contributor · added in 1.0.0
Releases (23)

Pick two releases to compare their code metrics.

  • 1.1.1Latest
    record
    2026-10-07 · current release · diff ↗ ·
    added 1 export
    se0_ridge
  • 1.1.0
    record
    2026-04-29 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1
    record
    2025-11-22 · diff ↗
  • 1.0.0
    record
    2025-08-29 · diff ↗ ·
    added 9 exports
    mdyplControl, mdyplFit, mdypl_control, mdypl_fit, plrtest, se0, se1, sloe, solve_se
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.2
    record
    2023-10-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9
    record
    2023-02-06 · diff ↗ ·
    added 1 export
    expo
  • R
    R 4.2.0 released · 2022-04-22
  • 0.8.2
    record
    2021-11-21 · diff ↗
  • 0.8.1
    record
    2021-09-27 · diff ↗
  • 0.8.0
    record
    2021-07-17 · diff ↗ ·
    removed 4 exports
    checkInfiniteEstimates, detectSeparation, detectSeparationControl, detect_separation_control
    added 2 exports
    brnb, ordinal_superiority
  • R
    R 4.1.0 released · 2021-05-18
  • 0.7.1
    record
    2021-01-22 · diff ↗
Show 18 earlier eventsHide 18 earlier events
  • 0.7.0
    record
    2020-10-19 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.6.2
    record
    2020-03-19 · diff ↗
  • 0.6.1
    record
    2020-02-06 · diff ↗
  • 0.6.0
    record
    2019-11-08 · diff ↗
  • 0.5.2
    record
    2019-10-12 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.5.1
    record
    2019-02-14 · diff ↗
  • 0.5.0
    record
    2019-02-06 · diff ↗ ·
    added 2 exports
    bracl, mis
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.8
    record
    2018-04-16 · diff ↗
  • 0.1.7
    record
    2018-02-23 · diff ↗
  • 0.1.6
    record
    2018-02-09 · diff ↗
  • 0.1.5
    record
    2017-10-13 · diff ↗
  • 0.1.4
    record
    2017-05-23 · diff ↗ ·
    removed 1 export
    detect_infinite_estimates
    added 9 exports
    brglmControl, brglm_control, brglm_fit, checkInfiniteEstimates, check_infinite_estimates, detectSeparation, detectSeparationControl, detect_separation, detect_separation_control
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.3
    record
    2017-04-04
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-04-04
Total releases
23 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5
Bundled data
1.9 MB / 9 files
Download size
2.3 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("brglm2")

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 brglm2 version 1.1.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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