Skip to content

brms

2.23.0

Bayesian Regression Models using 'Stan'

86packages depend
554.6Kdownloads / year
81.4%test coverage
11/13checks pass

Overview

About
Maintained by Paul-Christian BürknerFirst published 2015-05-0862 releasesCRAN page ↗GitHub ↗

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

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 16.1 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.20
81.4%
Coverage · measured lines
100%
Documentation · exports
25
Dependencies · direct
Check history
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-27
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-14
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,635 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
21%
Documented parameters
97%
Return-value docs
68%
References docs
8%

Downloads

554.6K
CRAN downloads in the past year
Rank #485 · ~1.5K/day · ~46.2K/mo
Daily download trend is not available in this view yet.
56.1K30 days
171.5K90 days
554.6K1 year
Compare downloads with other packages →
Also on8.4K r2u201 autocran10.6K conda_forge291 c2d4u

Repository

Repository
1,418Stars
222Forks
139Open issues
8Open PRs
56Releases
5,656Commits
73Contributors
brmsstanbayesian-inferencemultilevel-modelsstatistical-modelsr-package
License GPL-2.0 · 5,656 commits · Last activity 2026-07-22 · +0.2% stars, 30d

Stars over time

2025-07-22 · 1,3282026-07-16 · 1,418

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/paul-buerkner/brms on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
CRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Governance and community (2)
Issue templatesFunding
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Code & Tests

Code Composition
R 53,627 (74%)Rd 13,806 (19%)Vignettes 2,919 (4%)Other 2,399 (3%)
Code characteristics
Object systems
S3331
Cyclomatic complexity
1.0 median / 112 max
Test cases
352 / 0.20 per code line
System requirements
1 external

Test coverage

Line coverage

81%

Expression

80.6%

Tests / Examples

81.4% / – ex

Functions

1819 260 exported

Complexity

3.2 avg / 112 max

Call network

1819 nodes / 5274 edges

Loading call graph…

Lowest coverage

1819 functions
FunctionCycloCoverage
add_ic exp10%
add_ic<- exp10%
add_loo exp20%
add_rstan_model exp30%
add_waic exp20%
brm_multiple exp180%

Datasets

Bundled datasets · 4
NameClassRows × ColsAlso ships in
epilepsydata.frame236 × 9
inhalerdata.frame572 × 5
kidneydata.frame76 × 7
lossdata.frame55 × 4

People & History

People (19)
Maintainer (1)
Author, Maintainer · added in 1.3.0
Authors (1)
Author, Maintainer · added in 1.3.0
Contributors (18)
Contributor · added in 2.16.0
Contributor · added in 2.16.0
Contributor · added in 2.23.0
Contributor · added in 2.13.3
Contributor · added in 2.15.0
Contributor · added in 2.23.0
Contributor · added in 2.23.0
Contributor · added in 2.18.0
Show 10 more contributors
Contributor · added in 2.15.0
Contributor · added in 2.23.0
Contributor · added in 2.21.0
Contributor · added in 2.17.0
Contributor · added in 2.23.0
Contributor · added in 2.23.0
Contributor · added in 2.21.0
Contributor · added in 2.16.0
Contributor · added in 2.14.0
Contributor · added in 2.19.0
Listed in earlier versions (1)
no longer listed · 0.1.0 to 1.2.0
Package Timeline

62 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.23.0Latest
    2025-09-09 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.22.0
    2024-09-23 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.21.0
    2024-03-20 · diff ↗
  • 2.20.4
    2023-09-25 · diff ↗
  • 2.20.3
    2023-09-15 · diff ↗
  • 2.20.1
    2023-08-14 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.19.0
    2023-03-14 · diff ↗
  • 2.18.0
    2022-09-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.17.0
    2022-04-13 · diff ↗
  • 2.16.3
    2021-11-22 · diff ↗
  • 2.16.1
    2021-08-23 · diff ↗
Show 58 earlier events

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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →