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.31235/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.31235/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. 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.
    3. Tsionas, Mike G., 2020. "Quantile Stochastic Frontiers," European Journal of Operational Research, Elsevier, vol. 282(3), pages 1177-1184.
    4. 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.
    5. 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.
    6. Zijian Zeng & Meng Li, 2020. "Bayesian Median Autoregression for Robust Time Series Forecasting," Papers 2001.01116, arXiv.org, revised Dec 2020.
    7. 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).
    8. JD Opdyke, 2025. "Causal Discovery via Simultaneous DAG Recovery Using the Angles Space of Directional Dependence Measures," Papers 2504.15268, arXiv.org, revised Aug 2026.
    9. Flórez, Alvaro J. & Molenberghs, Geert & Van der Elst, Wim & Alonso Abad, Ariel, 2022. "An efficient algorithm to assess multivariate surrogate endpoints in a causal inference framework," Computational Statistics & Data Analysis, Elsevier, vol. 172(C).
    10. Fan, Ye & Lin, Nan, 2025. "Sequential quantile regression for stream data by least squares," Journal of Econometrics, Elsevier, vol. 249(PA).
    11. Yingying Hu & Huixia Judy Wang & Xuming He & Jianhua Guo, 2021. "Bayesian joint-quantile regression," Computational Statistics, Springer, vol. 36(3), pages 2033-2053, September.
    12. Giuseppe Brandi & Ruggero Gramatica & Tiziana Di Matteo, 2019. "Unveil stock correlation via a new tensor-based decomposition method," Papers 1911.06126, arXiv.org, revised Apr 2020.
    13. Henry R. Scharf & Xinyi Lu & Perry J. Williams & Mevin B. Hooten, 2022. "Constructing Flexible, Identifiable and Interpretable Statistical Models for Binary Data," International Statistical Review, International Statistical Institute, vol. 90(2), pages 328-345, August.
    14. Susana Faria & Maria Conceição Portela, 2016. "Student Performance in Mathematics using PISA-2009 data for Portugal," Working Papers de Gestão (Management Working Papers) 01, Católica Porto Business School, Universidade Católica Portuguesa.
    15. Andrew Y. Chen & Jack McCoy, 2022. "Missing Values Handling for Machine Learning Portfolios," Papers 2207.13071, arXiv.org, revised Jan 2024.
    16. Lin, Zhengzhi & Liu, Xiao & Xiang, Yisha & Hong, Yili, 2025. "Modeling multivariate degradation data with dynamic covariates under a Bayesian framework," Reliability Engineering and System Safety, Elsevier, vol. 261(C).
    17. Gregory Benton & Wesley J. Maddox & Andrew Gordon Wilson, 2022. "Volatility Based Kernels and Moving Average Means for Accurate Forecasting with Gaussian Processes," Papers 2207.06544, arXiv.org.
    18. Juho Kettunen & Lauri Mehtätalo & Eeva‐Stiina Tuittila & Aino Korrensalo & Jarno Vanhatalo, 2024. "Joint species distribution modeling with competition for space," Environmetrics, John Wiley & Sons, Ltd., vol. 35(2), March.
    19. Pedro Luis do N. Silva & Fernando Antônio da S. Moura, 2022. "Fitting multivariate multilevel models under informative sampling," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(4), pages 1663-1678, October.
    20. Melody Huang & Cory McCartan, 2025. "Relative Bias Under Imperfect Identification in Observational Causal Inference," Papers 2507.23743, arXiv.org, revised Mar 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://socarxiv.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.