FlexReg: an R package for fitting a general class of mixture regression models with bounded responses in a Bayesian framework
Open Access
- 7 February 2026
- journal article
- research article
- Published by Springer Nature in Computational Statistics
- Vol. 41 (2) , 42
Abstract
Bounded responses, either continuous or discrete, are common in many fields, such as ecology, economics, and biomedical sciences. Standard regression models often fail to capture features like bimodality, heavy tails, overdispersion, or excess zeros, which frequently arise in these contexts. The package, which provides a unified Bayesian framework for regression modeling of bounded outcomes, addresses all these challenges through flexible distributional assumptions and robust estimation based on Hamiltonian Monte Carlo implemented via the Stan language. The package implements beta-type and binomial-type models, along with their flexible and variance-inflated extensions, and allows for handling values on the boundary of the response support, when needed. Beyond model fitting, includes tools for convergence diagnostics, posterior summaries, residual analysis, and predictive checking. By integrating and enriching recent methodological advances within a user-friendly Bayesian framework, this work delivers a computational infrastructure that facilitates the application of flexible regression methods for bounded data.Keywords
Funding Information
- Università degli Studi di Milano-Bicocca
This publication has 19 references indexed in Scilit:
- A New Regression Model for Count Compositions2022
- A new regression model for overdispersed binomial data accounting for outliers and an excess of zerosStatistics in Medicine, 2021
- A spatial mixed-effects regression model for electoral dataStatistical Methods & Applications, 2020
- A new mixed‐effects mixture model for constrained longitudinal dataStatistics in Medicine, 2019
- R-squared for Bayesian Regression ModelsThe American Statistician, 2019
- Practical Bayesian model evaluation using leave-one-out cross-validation and WAICStatistics and Computing, 2016
- Data Analysis2016
- Models for Overdispersed Data in Entomology2014
- A general class of zero-or-one inflated beta regression modelsComputational Statistics & Data Analysis, 2012
- Overdispersion: Models and estimationComputational Statistics & Data Analysis, 1998