Skip to content

detectseparation

0.4.0Package record

Detect and Check for Separation and Infinite Maximum Likelihood Estimates

3packages dependsuggested by 5
50Kdownloads / year
89.3%test coverage
8/13flavors OK

Overview

About

Provides pre-fit and post-fit methods for detecting separation and infinite maximum likelihood estimates in generalized linear models with categorical responses. The pre-fit methods apply on binomial-response generalized liner models such as logit, probit and cloglog regression, and can be directly supplied as fitting methods to the glm() function. They solve the linear programming problems for the detection of separation developed in Konis (2007, https://ora.ox.ac.uk/objects/uuid:8f9ee0d0-d78e-4101-9ab4-f9cbceed2a2a) using 'ROI' https://cran.r-project.org/package=ROI or 'lpSolveAPI' https://cran.r-project.org/package=lpSolveAPI. The post-fit methods apply to models with categorical responses, including binomial-response generalized linear models and multinomial-response models, such as baseline category logits and adjacent category logits models; for example, the models implemented in the 'brglm2' https://cran.r-project.org/package=brglm2 package. The post-fit methods successively refit the model with increasing number of iteratively reweighted least squares iterations, and monitor the ratio of the estimated standard error for each parameter to what it has been in the first iteration. According to the results in Lesaffre & Albert (1989, https://www.jstor.org/stable/2345845), divergence of those ratios indicates data separation.

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  detectseparation/R/detect_infinite_estimates.R (.Names: 1)
'.Names' should be changed to 'names'.

CRAN check page ↗

Slowest check: 1.6 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.4.0
READMEYes · 902 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · does not mention 0.4.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
9includes a package overview page
Examples that run
100%4 run in a plain check
Exported functions with examples
75%
Documented parameters
100%
Return-value docs
50%
Help pages citing references
67%

Downloads

50K
CRAN downloads in the past year
Rank #1,698 · ~137/day · ~4.2K/mo
Daily download trend is not available in this view yet.
5K30 days
12.6K90 days
50K1 year
Compare downloads with other packages →
Also on437 r2u15 autocran1.2K conda_forge

Repository

7Stars
1Forks
3Open issues
0Open PRs
4Releases
195Commits
5Commit identities
195 commits · Last activity 2026-04-29 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
92%
Median days to close, 50 most recently updated closed issues
18
Median days to close, 50 most recently updated closed PRs
3

Stars over time

2025-03-14 · 72026-07-07 · 7
PracticesBeta

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

Checks run against github.com/ikosmidis/detectseparation on 2026-10-11.

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
Coverage (1)
Coverage reporting (Codecov)
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing detectseparation adds 21 packages (10 with compiled code, 4.9 MB of source tarballs). Heaviest: fs 1.4 MB, rlang 766 KB, cli 629 KB.

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

Datasets

People & History

People (4)
Author, Maintainer since 0.1 (2020)
Author · added in 0.3
Contributor
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0Latest
    record
    2026-04-19 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3
    record
    2022-08-26 · diff ↗ ·
    added 2 exports
    detectInfiniteEstimates, detect_infinite_estimates
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2
    record
    2021-04-22 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1
    record
    2020-03-25
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2020-03-25
Total releases
4 / 6 yrs
License
GPL-3 OSI
Minimum R
≥ 3.3.0
Bundled data
1.2 KB / 3 files
Download size
107 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("detectseparation")
Kosmidis, I., Konis, K., Schumacher, D., & Schwendinger, F. (2026). detectseparation: Detect and Check for Separation and Infinite Maximum Likelihood Estimates (Version 0.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.detectseparation

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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

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