Analysis of categorical data from biological experiments with logistic regression and CMH tests

R Rebecca J. Androwski T Tatiana Popovitchenko A Anna J. Smart S Sho Ogino G Guoqiang Wang (State Key Laboratory of Coordination Chemistry, School of Chemistry and Chemical Engineering) M Mark Saba C Christopher Rongo M Monica Driscoll J Jason Roy

Abstract

The choice of appropriate statistical tests in experimental biology is critical for scientific rigor and can be challenging in the case of categorical data analysis. Using example datasets from Caenorhabditis elegans research, we conduct statistical analysis of (1) a rare cellular event involving the formation of a neuronal extrusion called an exopher and (2) a variable behavioral response across time. We employ the Cochran–Mantel–Haenszel (CMH) test and logistic regression for analysis. Recognizing there are potential accessibility issues using logistic regression, we provide step-by-step tutorials and example code. We emphasize that logistic regression can handle both simple and complex multivariable datasets; logistic regression can also provide more comprehensive insights into experimental outcomes when compared to simpler tests like CMH. By analyzing real biological examples and demonstrating their analysis with R code, we provide a practical guide for biologists to enhance the rigor and reproducibility of categorical data analysis in experimental studies.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 11
Published November 17, 2025
Pages e0335143
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (9)

R

Rebecca J. Androwski

T

Tatiana Popovitchenko

A

Anna J. Smart

S

Sho Ogino

G

Guoqiang Wang

State Key Laboratory of Coordination Chemistry, School of Chemistry and Chemical Engineering

M

Mark Saba

C

Christopher Rongo

M

Monica Driscoll

J

Jason Roy