Overlapped We Stand, Separated We Fall: Software Approaches to Diagnosing Separation Phenomena in Categorical Response Models
Abstract
In statistical models for categorical responses, including binary, nominal and ordinal responses, a phenomenon called ``separation'' may occur which can render maximum likelihood estimate nonexistent and/or nonunique. Based on Sablica et al. (2026)'s general characterization of separation phenomena via structure vectors, in this article we discuss computational, numerical and practical aspects of separation phenomena in different software packages, including consequences, remedies and ways of diagnosing them. We further introduce the R package divoRce which provides the most comprehensive software suite to diagnose separation in existence. It allows to check for separation, to distinguish between types of separation, characterize the recession cone and identify variables and observations contributing to separation for almost any categorical response model in the literature, including models with baseline-category link, cumulative link, adjacent-category link and sequential link specifications. Diagnostics are based on methods for computational geometry and linear programming and can be done in floating-point or rational arithmetic with different solvers. The functionality is easily extendible by wrappers and S3 methods to accommodate implementations in third-party packages or of new categorical response models. We discuss our implementation in detail and show our software in action in a wide range of applications. We recommend to incorporate our checks for separation and existence of the MLE as a diagnostic routine in every categorical data analysis both in third-party software implementations and as part of a standard model diagnostic workflow.
Create a lesson
Related papers
Ready for the Clinic? A Survey of Open-Source Software for Response-Adaptive Randomization in Clinical Trials
Shared title terminology · Stina Zetterstrom, David S. Robertson, Sofía S. Villar
When Scatter Plots Hide the Data: Diagnosing Ties and Choosing the Right Display in R
Shared title terminology · Sameera Viswakula
Overlap, Not Moments: Finite-Sample Theory for Bridge Sampling
Shared title terminology · Giorgio Micaletto
The Curious Case of the Default Settings: Evaluating Default Performance of Variational Inference Software
Shared title terminology · Madelyn Andersen, Elizabeth Bersson, Tamara Broderick
A categorical account of the Metropolis-Hastings algorithm
Shared title terminology · Rob Cornish, Andi Q. Wang