Bayesian Regression Models using 'Stan'
Overview
Fit Bayesian generalized (non-)linear multivariate multilevel models using 'Stan' for full Bayesian inference. A wide range of distributions and link functions are supported, allowing users to fit -- among others -- linear, robust linear, count data, survival, response times, ordinal, zero-inflated, hurdle, and even self-defined mixture models all in a multilevel context. Further modeling options include both theory-driven and data-driven non-linear terms, auto-correlation structures, censoring and truncation, meta-analytic standard errors, and quite a few more. In addition, all parameters of the response distribution can be predicted in order to perform distributional regression. Prior specifications are flexible and explicitly encourage users to apply prior distributions that actually reflect their prior knowledge. Models can easily be evaluated and compared using several methods assessing posterior or prior predictions. References: Bürkner (2017) doi:10.18637/jss.v080.i01; Bürkner (2018) doi:10.32614/RJ-2018-017; Bürkner (2021) doi:10.18637/jss.v100.i05; Carpenter et al. (2017) doi:10.18637/jss.v076.i01.
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘theme_default.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-27
- WARNING12 OK, 1 WARNING2026-06-14
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
Show 2 earlier changesHide 2 earlier changes
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 188 (7 internal)includes a package overview page
- Examples that run
- 21%25 run in a plain check · 93 never run
- Exported functions with examples
- 63%
- Documented parameters
- 97%
- Return-value docs
- 68%
- Help pages citing references
- 8%
- Define Custom Response Distributions with brms
- Estimating Distributional Models with brms
- Estimating Monotonic Effects with brms
- Estimating Multivariate Models with brms
- Estimating Non-Linear Models with brms
- Estimating Phylogenetic Multilevel Models with brms
- Handle Missing Values with brms
- Parameterization of Response Distributions in brms
- Running brms models with within-chain parallelization
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
12 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/paul-buerkner/brms on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-07 · The repository has a site deploy workflow
pkgdown site last built 2026-10-07
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen on or before 2026-09-04Commits: at least 2 crediting it in the message
Dependencies
Installing brms adds 71 packages (35 with compiled code, 70 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Show 10 more contributorsHide 10 contributors
Maintainer since 0.1.0 (2015)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.23.0Latest
- RR 4.5.0 released · 2025-04-11
- 2.22.0
- RR 4.4.0 released · 2024-04-24
- 2.21.02024-03-20 · diff ↗ ·
removed 1 export
launch_shinystanadded 4 exports
constant, default_prior, psis, read_csv_as_stanfit - 2.20.42023-09-25 · diff ↗
- 2.20.32023-09-15 · diff ↗
- 2.20.1
- RR 4.3.0 released · 2023-04-21
- 2.19.0
- 2.18.02022-09-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.17.02022-04-13 · diff ↗ ·
added 10 exports
beta_binomial, dbeta_binomial, dlogistic_normal, dzero_inflated_beta_binomial, logistic_normal, pbeta_binomial, pzero_inflated_beta_binomial, rbeta_binomial, rlogistic_normal, zero_inflated_beta_binomial - 2.16.32021-11-22 · diff ↗ ·
removed 3 exports
cv_varsel, get_refmodel, varseladded 1 export
recompile_model - 2.16.12021-08-23 · diff ↗
Show 58 earlier eventsHide 58 earlier events
- 2.16.02021-08-19 · diff ↗ ·
added 16 exports
add_rstan_model, as_draws, as_draws_array, as_draws_df, as_draws_list, as_draws_matrix, as_draws_rvars, get_dpar, nchains, ndraws, niterations, nvariables, opencl, prior_draws, resp_index, variables - RR 4.1.0 released · 2021-05-18
- 2.15.0
- 2.14.4
- 2.14.0
- 2.13.5
- 2.13.32020-07-13 · diff ↗
- 2.13.0
- RR 4.0.0 released · 2020-04-24
- 2.12.0
- 2.11.12020-01-19 · diff ↗
- 2.11.02020-01-12 · diff ↗ ·
added 6 exports
conditional_effects, conditional_smooths, loo_subsample, mcmc_plot, pp_expect, resp_thres - 2.10.02019-08-29 · diff ↗ ·
added 6 exports
cor_cosy, empty_prior, is.cor_cosy, resp_rate, resp_vint, resp_vreal - 2.9.0
- RR 3.6.0 released · 2019-04-26
- 2.8.02019-03-15 · diff ↗ ·
added 10 exports
add_criterion, ddirichlet, dirichlet, do_call, get_y, loo_compare, multinomial, mvbind, rdirichlet, resp_subset - 2.7.0
- 2.6.02018-10-23 · diff ↗ ·
added 7 exports
data_predictor, data_response, density_ratio, extract_draws, predictive_interval, update_adterms, validate_newdata - 2.5.0
- 2.4.0
- 2.3.12018-06-05 · diff ↗ ·
added 16 exports
dhurdle_gamma, dhurdle_lognormal, dhurdle_negbinomial, dhurdle_poisson, dzero_inflated_beta, dzero_inflated_binomial, dzero_inflated_negbinomial, dzero_inflated_poisson, phurdle_gamma, phurdle_lognormal, phurdle_negbinomial, phurdle_poisson, pzero_inflated_beta, pzero_inflated_binomial, pzero_inflated_negbinomial, pzero_inflated_poisson - 2.3.02018-05-14 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.2.02018-04-13 · diff ↗ ·
added 17 exports
autocor, custom_family, dshifted_lnorm, loo_model_weights, make_conditions, mi, mmc, model_weights, posterior_average, pshifted_lnorm, qshifted_lnorm, resp_mi, rows2labels, rshifted_lnorm, set_mecor, shifted_lognormal, stanvar - 2.1.0
- 2.0.1
- 2.0.02017-12-15 · diff ↗ ·
removed 8 exports
brmdata, cor.ar, cor.arma, cor.ma, cov_fixed, launch_shiny, posterior.samples, resp_dispadded 5 exports
is.mvbrmsformula, is.mvbrmsterms, mvbf, mvbrmsformula, set_rescor - 1.10.22017-10-20 · diff ↗
- 1.10.02017-09-09 · diff ↗ ·
added 6 exports
posterior_interval, posterior_linpred, s, t2, theme_black, theme_default - 1.9.02017-08-15 · diff ↗ ·
added 9 exports
add_ic<-, bayes_R2, bayes_factor, bridge_sampler, launch_shinystan, lf, nlf, post_prob, set_nl - 1.8.02017-07-20 · diff ↗ ·
added 16 exports
add_loo, add_waic, cor_car, cor_errorsar, cor_icar, cor_lagsar, cor_sar, dskew_normal, is.cor_car, is.cor_sar, kfold, pskew_normal, qskew_normal, reloo, rskew_normal, skew_normal - 1.7.0
- RR 3.4.0 released · 2017-04-21
- 1.6.1
- 1.6.02017-04-06 · diff ↗ ·
added 36 exports
control_params, dasym_laplace, dexgaussian, dfrechet, dgen_extreme_value, dinv_gaussian, dmulti_normal, dmulti_student_t, dstudent_t, dvon_mises, dwiener, loo_linpred, loo_predict, loo_predictive_interval, mixture, pasym_laplace, pexgaussian, pfrechet, pgen_extreme_value, pinv_gaussian, pp_mixture, pstudent_t, pvon_mises, qasym_laplace, qfrechet, qstudent_t, rasym_laplace, rexgaussian, rfrechet, rgen_extreme_value and 6 more - 1.5.1
- 1.5.02017-02-17 · diff ↗ ·
added 5 exports
gen_extreme_value, horseshoe, inv_logit_scaled, lasso, logit_scaled - 1.4.02017-01-27 · diff ↗ ·
added 24 exports
asym_laplace, compare_ic, expp1, frechet, is.brmsfit, is.brmsformula, is.brmsprior, is.brmsterms, is.cor_arma, is.cor_brms, is.cor_bsts, is.cor_fixed, logm1, nsamples, parse_bf, prior_, resp_cat, resp_cens, resp_dec, resp_disp, resp_se, resp_trials, resp_trunc, resp_weights - 1.3.12016-12-22 · diff ↗
- 1.3.02016-12-20 · diff ↗ ·
added 14 exports
cs, cse, exgaussian, gr, log_posterior, me, mm, mo, mono, monotonic, neff_ratio, nuts_params, rhat, wiener - 1.2.02016-12-06 · diff ↗ ·
added 10 exports
hurdle_lognormal, log_lik, loo, marginal_smooths, posterior_predict, predictive_error, prior, prior_string, prior_summary, waic - 1.1.02016-10-11 · diff ↗
- 1.0.12016-09-16 · diff ↗
- 1.0.02016-09-15 · diff ↗ ·
removed 1 export
cauchyadded 6 exports
bf, brmsfamily, brmsformula, cov_fixed, pp_check, von_mises - 0.10.0
- 0.9.12016-05-17 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.9.02016-04-19 · diff ↗ ·
removed 2 exports
brm.data, par.namesadded 2 exports
cor_fixed, expose_functions - 0.8.0
- 0.7.0
- 0.6.02015-11-14 · diff ↗ ·
removed 2 exports
brm.pars, brmparsadded 21 exports
acat, bernoulli, categorical, cauchy, cor_arr, cratio, cumulative, exponential, geometric, hurdle_gamma, hurdle_negbinomial, hurdle_poisson, make_stancode, make_standata, negbinomial, sratio, stanplot, student, weibull, zero_inflated_negbinomial, zero_inflated_poisson - 0.5.02015-09-13 · diff ↗ ·
added 15 exports
LOO, brmdata, brmpars, cor_ar, cor_arma, cor_ma, get_prior, launch_shiny, macf, parnames, posterior_samples, prior_samples, set_prior, stancode, standata - 0.4.12015-08-03 · diff ↗
- 0.4.0
- 0.3.02015-06-29 · diff ↗ ·
added 6 exports
cor.ar, cor.arma, cor.ma, hypothesis, par.names, posterior.samples - 0.2.0
- 0.1.02015-05-08
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-05-08
- Total releases
- 62 / 11 yrs
- License
- GPL-2 OSI
- Additional repositories
- stan-dev.r-universe.dev
- Minimum R
- ≥ 3.6.0
- Bundled data
- 5.3 KB / 4 files
- Download size
- 4.9 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("brms")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v080.i01, 10.32614/rj-2018-017, 10.18637/jss.v100.i05.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.