Advanced Bayesian Multilevel Modeling with the R Package brms
Open accessThe DOI matches its Crossref record; 22 of the 22 references it cites were found in a registry or an index.
Abstract
The brms package allows R users to easily specify a wide range of Bayesian single-level and multilevel models, which are fitted with the probabilistic programming language Stan behind the scenes. Several response distributions are supported, of which all parameters (e.g., location, scale, and shape) can be predicted at the same time thus allowing for distributional regression. Non-linear relationships may be specified using non-linear predictor terms or semi-parametric approaches such as splines or Gaussian processes. To make all of these modeling options possible in a multilevel framework, brms provides an intuitive and powerful formula syntax, which extends the well known formula syntax of lme4. The purpose of the present paper is to introduce this syntax in detail and to demonstrate its usefulness with four examples, each showing other relevant aspects of the syntax.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source says what the claim attributes to it.
In the citing paper
“The brms package (Bürkner, 2018) for R, an interface to STAN (STAN Development Team, 2021), provides an accessible solution to fit such models.”
From Rating norms should be calculated from cumulative link mixed effects models (2022) · cites this paper as Bürkner, 2018
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Fitting Linear Mixed-Effects Models Using lme4
Bates, D., Mächler, M., Bolker, B., & Walker, S. (2015) · Journal of Statistical Software · doi:10.18637/jss.v067.i01 · Cited by 86,835
Gelman, A., Carlin, J. B., Stern, H. S., & Rubin, D. B. (2003) · doi:10.1201/9780429258480 · Cited by 27,276
Data Analysis Using Regression and Multilevel/Hierarchical Models
Gelman, A., & Hill, J. (2006) · doi:10.1017/cbo9780511790942 · Cited by 13,597
Mixed-Effects Models in S and S-PLUS
(2001) · Technometrics · doi:10.1198/tech.2001.s574 · Cited by 9,278 · cited 1×
“Multilevel models (MLMs) offer great flexibility for researchers across sciences (Brown and Prescott, 2015; Demidenko, 2013; Gelman and Hill, 2006; Pinheiro and Bates, 2006).”
Stan : A Probabilistic Programming Language
Carpenter, B., Gelman, A., Hoffman, M. D., Lee, D., Goodrich, B., Betancourt, M., Brubaker, M., Guo, J., Li, P., & Riddell, A. (2017) · Journal of Statistical Software · doi:10.18637/jss.v076.i01 · Cited by 7,754 · cited 2×
“Possibly the most powerful program for performing full Bayesian inference available to date is Stan (Stan Development Team, 2017b; Carpenter et al., 2017).”
BackgroundWood, S. N. (2011) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.1467-9868.2010.00749.x · Cited by 7,537
(2015) · doi:10.1007/s11222-016-9696-4 · Cited by 5,611 · cited 1×
“Comparing model fit via leave-one-out cross validation as implemented in the loo package (Vehtari et al., 2016a,b). reveals that the second model using the number of children to predict both model parts has better fit.”
MethodGaussian Processes in Machine Learning
Rasmussen, C. E. (2004) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-28650-9_4 · Cited by 5,397
MCMC Methods for Multi-Response Generalized Linear Mixed Models: The MCMCglmmR Package
Hadfield, J. D. (2010) · Journal of Statistical Software · doi:10.18637/jss.v033.i02 · Cited by 4,799
Duane, S., Kennedy, A. D., Pendleton, B. J., & Roweth, D. (1987) · Physics Letters B · doi:10.1016/0370-2693(87)91197-x · Cited by 3,872
Generalized additive models for location, scale and shape.
Rigby, R. A., & Stasinopoulos, D. M. (2005) · Journal of the Royal Statistical Society Series C: Applied Statistics · doi:10.1111/j.1467-9876.2005.00510.x · Cited by 3,228 · cited 1×
“Models doing exactly that are often referred to as distributional models or more verbosely models for location, scale and shape (Rigby and Stasinopoulos, 2005).”
BackgroundStable and Efficient Multiple Smoothing Parameter Estimation for Generalized Additive Models
Wood, S. N. (2004) · Journal of the American Statistical Association · doi:10.1198/016214504000000980 · Cited by 2,008
Nonlinear Mixed Effects Models for Repeated Measures Data
Lindstrom, M. J., & Bates, D. M. (1990) · Biometrics · doi:10.2307/2532087 · Cited by 1,795
The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo
Hoffman, M. D., & Gelman, A. (2011) · arXiv (Cornell University) · doi:10.48550/arxiv.1111.4246 · Cited by 1,713
afex: Analysis of Factorial Experiments
Singmann, H., Bolker, B., Westfall, J., Aust, F., & Ben-Shachar, M. S. (2012) · CRAN: Contributed Packages · doi:10.32614/cran.package.afex · Cited by 773
Bayesian hypothesis testing for psychologists: A tutorial on the Savage–Dickey method
Wagenmakers, E.-J., Lodewyckx, T., Kuriyal, H., & Grasman, R. (2010) · Cognitive Psychology · doi:10.1016/j.cogpsych.2009.12.001 · Cited by 740
Statistically controlling for confounding constructs is harder than you think
Westfall, J., & Yarkoni, T. (2016) · PLOS ONE · doi:10.1371/journal.pone.0152719 · Cited by 547
A Conceptual Introduction to Hamiltonian Monte Carlo
Betancourt, M. (2017) · arXiv (Cornell University) · doi:10.48550/arxiv.1701.02434 · Cited by 509
The geometric foundations of Hamiltonian Monte Carlo
Betancourt, M., Byrne, S., Livingstone, S., & Girolami, M. (2017) · Bernoulli · doi:10.3150/16-bej810 · Cited by 452
Straightforward intermediate rank tensor product smoothing in mixed models
Wood, S. N., Scheipl, F., & Faraway, J. J. (2013) · Statistics and Computing · doi:10.1007/s11222-012-9314-z · Cited by 194
bridgesampling: Bridge Sampling for Marginal Likelihoods and Bayes Factors
Gronau, Q. F., & Singmann, H. (2017) · doi:10.32614/cran.package.bridgesampling · Cited by 36
The Geometric Foundations of Hamiltonian Monte CarloPreprint
Betancourt, M., Byrne, S., Livingstone, S., et al. (2014) · arXiv (Cornell University) · doi:10.48550/arxiv.1410.5110 · Cited by 33
Cited by
Estimated transmissibility and impact of SARS-CoV-2 lineage B.1.1.7 in England
Davies, N. G., Abbott, S., Barnard, R. C., Jarvis, C. I., Kucharski, A. J., Munday, J. D., Pearson, C. A. B., Russell, T. W., Tully, D. C., Washburne, A. D., et al. (2021) · Science · doi:10.1126/science.abg3055 · Cited by 2,581
“168) 67 (53-83) 120 (92-152) UK sequence separate-slopes binomial GLMM (1|LTLA/OBS) + REGION * DATE North West VOC vs.”
BackgroundMethodInfluentialEvaluating the Effects of SARS-CoV-2 Spike Mutation D614G on Transmissibility and Pathogenicity
Volz, E., Hill, V., McCrone, J. T., Price, A., Jorgensen, D., O’Toole, Á., Southgate, J., Johnson, R., Jackson, B., Nascimento, F. F., et al. (2021) · Cell · doi:10.1016/j.cell.2020.11.020 · Cited by 1,006
Bayesian Item Response Modeling in R with brms and Stan
Bürkner, P.-C. (2021) · Journal of Statistical Software · doi:10.18637/jss.v100.i05 · Cited by 791
Self-citationOrdinal Regression Models in Psychology: A Tutorial
Bürkner, P.-C., & Vuorre, M. (2019) · Advances in Methods and Practices in Psychological Science · doi:10.1177/2515245918823199 · Cited by 689
“Although a number of software packages in the R statistical programming environment (R Core Team, 2017) allow modeling ordinal responses, here we use the brms (Bayesian regression models using ‘Stan’) package (Bürkner, 2017, 2018; Carpenter et al., 2017), for two main reasons.”
BackgroundMethodSelf-citationEstimating infectiousness throughout SARS-CoV-2 infection course
Jones, T. C., Biele, G., Mühlemann, B., Veith, T., Schneider, J., Beheim-Schwarzbach, J., Bleicker, T., Tesch, J., Schmidt, M. L., Sander, L. E., et al. (2021) · Science · doi:10.1126/science.abi5273 · Cited by 740
Metadata
- Authors
- Bürkner, P.-C.
- Corresponding author
- Bürkner, Paul-Christian
- Venue
- The R Journal
- Publisher
- The R Foundation
- Published
- 2018
- Volume
- 10
- Issue
- 1
- Pages
- 395
- ISSN
- 2073-4859 (ISSN-L)
- OpenAlex
- W2766160192
- Cited by
- 3,015
- References
- 21
- Citations by year
- 2026: 318 · 2025: 437 · 2024: 410 · 2023: 480 · 2022: 508 · 2021: 471 · 2020: 283 · 2019: 93 · 2018: 13
- FWCI
- 177.45
- Type
- journal article
- Language
- en
- Open access
- diamond
- doi.org
- Licence
- cc-by
- Locations
- The R Journal (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- Lincoln (University of Nebraska) (submittedVersion, cc-by)
- OSF Preprints (OSF Preprints) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Physical Sciences › Mathematics › Statistics and Probability › Data Analysis with R
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Distribution Estimation and Applications
- Keywords
- BRM, Bayesian hierarchical model, Stan, distributional regression, splines, Gaussian processes, lme4, R package
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.