Skip to main content
Location–scale models in ecology: heteroscedasticity in continuous, count and proportion data

Location–scale models in ecology: heteroscedasticity in continuous, count and proportion data

This is a Preprint and has not been peer reviewed. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Supplementary Files

Authors

Shinichi Nakagawa, Santiago Ortega, Elena Gazzea, Malgorzata Lagisz, Anna Lenz, Erick Lundgren, Ayumi Mizuno 

Abstract

Ecological data seldom meet the assumption of constant variance. Yet patterns of heteroscedasticity often reflect biologically meaningful variation, such as differences in plasticity or variable responses to environmental stresses. However, most studies model only the mean, treating variance as statistical noise. Here, we describe location–scale regression modeling, which estimates mean (location) as well as variance (scale) coefficients. We introduce three increasingly flexible formulations: (1) fixed-effect location–scale models, (2) models with random effects on the mean, and (3) double-hierarchical models with random effects on both mean and variance. We extend location–scale models from Gaussian to non-Gaussian data, including over-dispersed counts, proportions, and zero-inflated outcomes, features common to ecological datasets. Beyond overdispersion, we address underdispersion in count data and one-inflation in continuous proportions, providing a flexible framework for complex variance structures. We show that location–scale models can uncover informative variance patterns with minimal additional code. To support implementation, we provide an online tutorial, model selection workflow, and diagnostic guidance. Finally, we refer to new frontiers including multivariate, meta‑analytic, phylogenetic, and location-scale shape models. By treating variance as a biological response, instead of a nuisance, location–scale models enrich our understanding of organism and ecosystem dynamics in a changing world.

DOI

https://doi.org/10.32942/X2WH17

Subjects

Ecology and Evolutionary Biology

Keywords

homoscedasticity, linear modeling, mixed-effects models, sandwich estimator, GLMM, Bayesian statistics, over-dispersion, zero-inflation, distributional regression

Dates

Published: 2025-07-22 13:13

Last Updated: 2025-07-22 13:13

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
None

Data and Code Availability Statement:
All data, scripts and relevant files used for this article can be found at the GitHub repository: https://github.com/Ayumi-495/Eco_location-scale_model

Language:
English