IDEAS home Printed from https://ideas.repec.org/p/osf/socarx/7d5xb_v1.html

bqmm: Bayesian Multilevel Quantile Regression in R

Author

Listed:
  • Venkitasubramanian, Kailas

    (University of North Carolina at Charlotte)

Abstract

Quantile regression describes how covariates shift the conditional quantiles of an outcome, not merely its mean, and is indispensable when effects are heterogeneous across the response distribution. When data are clustered or longitudinal, a mixed-effects formulation is needed. I present bqmm, an R package for Bayesian multilevel quantile regression built on the asymmetric Laplace working likelihood and Stan. The package offers an lme4-style formula interface with nested and crossed random effects, optional LKJ-correlated random effects, estimation of one or several quantiles in a single call, post-hoc non-crossing rearrangement, and a transparent menu of fixed-effect interval methods — the naive posterior, the Yang–Wang–He (2016) sandwich correction, and the infinitesimal jackknife — because the asymmetric Laplace likelihood is misspecified and naive credible intervals can be invalid. The paper describes the model and software design, illustrates usage on longitudinal growth data, summarises a validation study (parameter recovery, simulation-based calibration, and a coverage study), and compares bqmm with related software.

Suggested Citation

  • Venkitasubramanian, Kailas, 2026. "bqmm: Bayesian Multilevel Quantile Regression in R," SocArXiv 7d5xb_v1, Center for Open Science.
  • Handle: RePEc:osf:socarx:7d5xb_v1
    DOI: 10.31219/osf.io/7d5xb_v1
    as

    Download full text from publisher

    File URL: https://osf.io/download/6a302fa2798c43c4b494529c/
    Download Restriction: no

    File URL: https://libkey.io/10.31219/osf.io/7d5xb_v1?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
    ---><---

    References listed on IDEAS

    as
    1. Lewandowski, Daniel & Kurowicka, Dorota & Joe, Harry, 2009. "Generating random correlation matrices based on vines and extended onion method," Journal of Multivariate Analysis, Elsevier, vol. 100(9), pages 1989-2001, October.
    2. Geraci, Marco, 2014. "Linear Quantile Mixed Models: The lqmm Package for Laplace Quantile Regression," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 57(i13).
    3. Yunwen Yang & Huixia Judy Wang & Xuming He, 2016. "Posterior Inference in Bayesian Quantile Regression with Asymmetric Laplace Likelihood," International Statistical Review, International Statistical Institute, vol. 84(3), pages 327-344, December.
    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. Geraci, Marco, 2019. "Modelling and estimation of nonlinear quantile regression with clustered data," Computational Statistics & Data Analysis, Elsevier, vol. 136(C), pages 30-46.
    2. Ameer Dharamshi & Monica Alexander & Celeste Winant & Magali Barbieri, 2025. "Jointly estimating subnational mortality for multiple populations," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 52(3), pages 71-110.
    3. David Kohns & Tibor Szendrei, 2021. "Decoupling Shrinkage and Selection for the Bayesian Quantile Regression," Papers 2107.08498, arXiv.org.
    4. Benjamin Poignard & Jean-David Fermanian, 2016. "Vine-GARCH process: Stationarity and Asymptotic Properties," Working Papers 2016-03, Center for Research in Economics and Statistics.
    5. Nicolas Hardy & Dimitris Korobilis, 2026. "Generalized Bayesian Composite Quantile Regression with an Application to Equity Premium Forecasting," Working Papers No 04/2026, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    6. Medina-Olivares, Victor & Calabrese, Raffaella & Crook, Jonathan & Lindgren, Finn, 2023. "Joint models for longitudinal and discrete survival data in credit scoring," European Journal of Operational Research, Elsevier, vol. 307(3), pages 1457-1473.
    7. Duncan J. Mayer & Robert L. Fischer, 2022. "Can a measurement error perspective improve estimation in neighborhood effects research? A hierarchical Bayesian methodology," Social Science Quarterly, Southwestern Social Science Association, vol. 103(5), pages 1260-1272, September.
    8. Rossetti, Tomás & Daziano, Ricardo A., 2024. "Crowding multipliers on shared transportation in New York City: The effects of COVID-19 and implications for a sustainable future," Transport Policy, Elsevier, vol. 145(C), pages 224-236.
    9. Natalya Presman & Tanya Suhoy, 2024. "How have government housing programs affected developers' bids in Israel Land Authority land tenders?," Bank of Israel Working Papers 2024.08, Bank of Israel.
    10. Batram, Manuel & Bauer, Dietmar, 2019. "On consistency of the MACML approach to discrete choice modelling," Journal of choice modelling, Elsevier, vol. 30(C), pages 1-16.
    11. Tsionas, Mike G., 2020. "Quantile Stochastic Frontiers," European Journal of Operational Research, Elsevier, vol. 282(3), pages 1177-1184.
    12. Akinc, Deniz & Vandebroek, Martina, 2018. "Bayesian estimation of mixed logit models: Selecting an appropriate prior for the covariance matrix," Journal of choice modelling, Elsevier, vol. 29(C), pages 133-151.
    13. Zhang, Yixiao & Yu, Cindy L. & Li, Haitao, 2022. "Nowcasting GDP Using Dynamic Factor Model with Unknown Number of Factors and Stochastic Volatility: A Bayesian Approach," Econometrics and Statistics, Elsevier, vol. 24(C), pages 75-93.
    14. Mohammad Mohammadi & Jerome Carriot & Isabelle Mackrous & Kathleen E Cullen & Maurice J Chacron, 2024. "Neural populations within macaque early vestibular pathways are adapted to encode natural self-motion," PLOS Biology, Public Library of Science, vol. 22(4), pages 1-34, April.
    15. Matthias Breuer & Harm H. Schütt, 2023. "Accounting for uncertainty: an application of Bayesian methods to accruals models," Review of Accounting Studies, Springer, vol. 28(2), pages 726-768, June.
    16. Zijian Zeng & Meng Li, 2020. "Bayesian Median Autoregression for Robust Time Series Forecasting," Papers 2001.01116, arXiv.org, revised Dec 2020.
    17. Koller, Manuel, 2016. "robustlmm: An R Package for Robust Estimation of Linear Mixed-Effects Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 75(i06).
    18. Zhongwei Zhang & Reinaldo B. Arellano‐Valle & Marc G. Genton & Raphaël Huser, 2023. "Tractable Bayes of skew‐elliptical link models for correlated binary data," Biometrics, The International Biometric Society, vol. 79(3), pages 1788-1800, September.
    19. Dellaportas, Petros & Titsias, Michalis K. & Petrova, Katerina & Plataniotis, Anastasios, 2023. "Scalable inference for a full multivariate stochastic volatility model," Journal of Econometrics, Elsevier, vol. 232(2), pages 501-520.
    20. JD Opdyke, 2025. "Beyond Correlation: Positive Definite Dependence Measures for Robust Inference, Flexible Scenarios, and Causal Modeling for Financial Portfolios," Papers 2504.15268, arXiv.org, revised Jan 2026.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:osf:socarx:7d5xb_v1. 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: OSF (email available below). General contact details of provider: https://arabixiv.org .

    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.