IDEAS home Printed from https://ideas.repec.org/a/spr/compst/v41y2026i2d10.1007_s00180-026-01720-y.html

FlexReg: an R package for fitting a general class of mixture regression models with bounded responses in a Bayesian framework

Author

Listed:
  • Roberto Ascari

    (University of Milano-Bicocca, Department of Economics, Management and Statistics)

  • Agnese Maria Di Brisco

    (University of Piemonte Orientale, Department of Studies for Economics and Business)

  • Sonia Migliorati

    (University of Milano-Bicocca, Department of Economics, Management and Statistics)

  • Andrea Ongaro

    (University of Milano-Bicocca, Department of Economics, Management and Statistics)

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 FlexReg 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, FlexReg 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.

Suggested Citation

  • Roberto Ascari & Agnese Maria Di Brisco & Sonia Migliorati & Andrea Ongaro, 2026. "FlexReg: an R package for fitting a general class of mixture regression models with bounded responses in a Bayesian framework," Computational Statistics, Springer, vol. 41(2), pages 1-35, February.
  • Handle: RePEc:spr:compst:v:41:y:2026:i:2:d:10.1007_s00180-026-01720-y
    DOI: 10.1007/s00180-026-01720-y
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s00180-026-01720-y
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s00180-026-01720-y?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Hinde, John & Demetrio, Clarice G. B., 1998. "Overdispersion: Models and estimation," Computational Statistics & Data Analysis, Elsevier, vol. 27(2), pages 151-170, April.
    2. Jonah Gabry & Daniel Simpson & Aki Vehtari & Michael Betancourt & Andrew Gelman, 2019. "Visualization in Bayesian workflow," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 182(2), pages 389-402, February.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Maria Iannario, 2015. "Detecting latent components in ordinal data with overdispersion by means of a mixture distribution," Quality & Quantity: International Journal of Methodology, Springer, vol. 49(3), pages 977-987, May.
    2. Tony Vangeneugden & Geert Molenberghs & Geert Verbeke & Clarice G.B. Dem�trio, 2011. "Marginal correlation from an extended random-effects model for repeated and overdispersed counts," Journal of Applied Statistics, Taylor & Francis Journals, vol. 38(2), pages 215-232, September.
    3. repec:osf:osfxxx:enzgs_v1 is not listed on IDEAS
    4. Jeonghwan Kim & Woojoo Lee, 2019. "On testing the hidden heterogeneity in negative binomial regression models," Metrika: International Journal for Theoretical and Applied Statistics, Springer, vol. 82(4), pages 457-470, May.
    5. Brian Hartley, 2020. "Corridor stability of the Kaleckian growth model: a Markov-switching approach," Working Papers 2013, New School for Social Research, Department of Economics, revised Nov 2020.
    6. Molenberghs, Geert & Verbeke, Geert & Iddi, Samuel & Demétrio, Clarice G.B., 2012. "A combined beta and normal random-effects model for repeated, overdispersed binary and binomial data," Journal of Multivariate Analysis, Elsevier, vol. 111(C), pages 94-109.
    7. Barbara Kachigunda & Kerrie Mengersen & Devindri I Perera & Grey T Coupland & Johann van der Merwe & Simon McKirdy, 2022. "Use of mixed-type data clustering algorithm for characterizing temporal and spatial distribution of biosecurity border detections of terrestrial non-indigenous species," PLOS ONE, Public Library of Science, vol. 17(8), pages 1-22, August.
    8. Barakat, Bilal Fouad & Dharamshi, Ameer & Alkema, Leontine & Antoninis, Manos, 2021. "Adjusted Bayesian Completion Rates (ABC) Estimation," SocArXiv at368, Center for Open Science.
    9. Perepolkin, Dmytro & Goodrich, Benjamin & Sahlin, Ullrika, 2023. "The tenets of quantile-based inference in Bayesian models," Computational Statistics & Data Analysis, Elsevier, vol. 187(C).
    10. Steven Abrams & Marc Aerts & Geert Molenberghs & Niel Hens, 2017. "Parametric overdispersed frailty models for current status data," Biometrics, The International Biometric Society, vol. 73(4), pages 1388-1400, December.
    11. Ilaria Pia & Elina Numminen & Lari Veneranta & Jarno Vanhatalo, 2025. "Spatially Explicit Model to Disentangle Effects of Environment on Annual Fish Reproduction," Environmetrics, John Wiley & Sons, Ltd., vol. 36(2), March.
    12. Yusuf OB & Bello T & Gureje O, 2017. "Zero Inflated Poisson and Zero Inflated Negative Binomial Models with Application to Number of Falls in the Elderly," Biostatistics and Biometrics Open Access Journal, Juniper Publishers Inc., vol. 1(4), pages 69-75, May.
    13. Christophe Croux & Irène Gijbels & Ilaria Prosdocimi, 2012. "Robust Estimation of Mean and Dispersion Functions in Extended Generalized Additive Models," Biometrics, The International Biometric Society, vol. 68(1), pages 31-44, March.
    14. Aeberhard, William H. & Cantoni, Eva & Heritier, Stephane, 2017. "Saddlepoint tests for accurate and robust inference on overdispersed count data," Computational Statistics & Data Analysis, Elsevier, vol. 107(C), pages 162-175.
    15. Sami Mestiri & Abdeljelil Farhat, 2021. "Using Non-parametric Count Model for Credit Scoring," Journal of Quantitative Economics, Springer;The Indian Econometric Society (TIES), vol. 19(1), pages 39-49, March.
    16. Feria-Domínguez, José Manuel & Jiménez-Rodríguez, Enrique & Sholarin, Ola, 2015. "Tackling the over-dispersion of operational risk: Implications on capital adequacy requirements," The North American Journal of Economics and Finance, Elsevier, vol. 31(C), pages 206-221.
    17. I. Gijbels & I. Prosdocimi & G. Claeskens, 2010. "Nonparametric estimation of mean and dispersion functions in extended generalized linear models," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 19(3), pages 580-608, November.
    18. I. Gijbels & I. Prosdocimi, 2011. "Smooth estimation of mean and dispersion function in extended generalized additive models with application to Italian induced abortion data," Journal of Applied Statistics, Taylor & Francis Journals, vol. 38(11), pages 2391-2411, December.
    19. Brian Hartley, 2022. "Episodic incidence of Harrodian instability and the Kaleckian growth model: A Markov‐switching approach," Metroeconomica, Wiley Blackwell, vol. 73(1), pages 268-290, February.
    20. Andrew J Tanentzap & Samuel Cottingham & Jérémy Fonvielle & Isobel Riley & Lucy M Walker & Samuel G Woodman & Danai Kontou & Christian M Pichler & Erwin Reisner & Laurent Lebreton, 2021. "Microplastics and anthropogenic fibre concentrations in lakes reflect surrounding land use," PLOS Biology, Public Library of Science, vol. 19(9), pages 1-18, September.
    21. Karan Bhuwalka & Eunseo Choi & Elizabeth A. Moore & Richard Roth & Randolph E. Kirchain & Elsa A. Olivetti, 2023. "A hierarchical Bayesian regression model that reduces uncertainty in material demand predictions," Journal of Industrial Ecology, Yale University, vol. 27(1), pages 43-55, February.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:compst:v:41:y:2026:i:2:d:10.1007_s00180-026-01720-y. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.