Skip to content

brglm2

1.1.0

Bias Reduction in Generalized Linear Models

26packages depend
149.8Kdownloads / year
test coverage
9/13checks pass

Overview

About
Maintained by Ioannis KosmidisFirst published 2017-04-0422 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
4NOTE9OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 3.6 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
9
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-08
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 3,930 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
84%
Documented parameters
98%
Return-value docs
50%
References docs
50%

Downloads

149.8K
CRAN downloads in the past year
Rank #1,120 · ~411/day · ~12.5K/mo
Daily download trend is not available in this view yet.
10.2K30 days
36K90 days
149.8K1 year
Compare downloads with other packages →
Also on5.8K r2u62 autocran5.4K conda_forge40 c2d4u

Repository

Repository
36Stars
12Forks
3Open issues
1Open PRs
15Releases
722Commits
5Contributors
estimationalgorithmsrbias-reductionglmrstatsregression-algorithmsregression
722 commits · Last activity 2026-04-29 · +5.9% stars, 30d

Stars over time

2025-05-05 · 302026-07-07 · 36

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/ikosmidis/brglm2 on 2026-07-19.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5
Imports (9)
MASSstatsMatrixgraphicsnnetenrichwithnumDerivstatmodnleqslv
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author · added in 0.1.4
Contributors (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
Package Timeline

22 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.1.0Latest
    2026-04-29 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1
    2025-11-22 · diff ↗
  • 1.0.0
    2025-08-29 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.2
    2023-10-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9
    2023-02-06 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.8.2
    2021-11-21 · diff ↗
  • 0.8.1
    2021-09-27 · diff ↗
  • 0.8.0
    2021-07-17 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.7.1
    2021-01-22 · diff ↗
  • 0.7.0
    2020-10-19 · diff ↗
Show 17 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • 0.6.2
    2020-03-19 · diff ↗
  • 0.6.1
    2020-02-06 · diff ↗
  • 0.6.0
    2019-11-08 · diff ↗
  • 0.5.2
    2019-10-12 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.5.1
    2019-02-14 · diff ↗
  • 0.5.0
    2019-02-06 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.8
    2018-04-16 · diff ↗
  • 0.1.7
    2018-02-23 · diff ↗
  • 0.1.6
    2018-02-09 · diff ↗
  • 0.1.5
    2017-10-13 · diff ↗
  • 0.1.4
    2017-05-23 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.3
    2017-04-04
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-04-04
Total releases
22 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5
Bundled data
1.9 MB / 9 files
Download size
2.3 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →