Skip to content

bayestestR

0.20.0Package record

Understand and Describe Bayesian Models and Posterior Distributions

28packages dependsuggested by 16
1.2Mdownloads / year
–test coverage
13/13flavors OK

Overview

About

Provides utilities to describe posterior distributions and Bayesian models. It includes point-estimates such as Maximum A Posteriori (MAP), measures of dispersion (Highest Density Interval - HDI; Kruschke, 2015 doi:10.1016/C2012-0-00477-2) and indices used for null-hypothesis testing (such as ROPE percentage, pd and Bayes factors). References: Makowski et al. (2021) doi:10.21105/joss.01541.

Changes in 0.20.0

Changes

  • sensitivity_to_prior() now supports models from package *brms*. All slopes need a normal, student_t, or cauchy prior.
  • p_rope() now actually is just a wrapper for rope(ci = 1).
  • equivalence_test() methods gain a ci_method argument passed to rope() to select the type of credible interval used in the ROPE calculation (#777).
  • bayesian_as_frequentist() gains a resp argument to convert one response of a multivariate *brms* model (easystats/performance#908).

Bug fixes

  • bayesian_as_frequentist() now works for linear mixed models from *BayesFactor* (with random factors set in whichRandom). They are refit with lme4::lmer() (#505).
Show all changes in 0.20.0Hide the rest of the changes in 0.20.0
  • If suggested packages are not installed, the Bayes factor vignette now builds. Before, its inline code ran and failed with "object not found".
  • equivalence_test() no longer prints "HDI" columns when using other CI methods (such as the default ETI).
  • Fixed issue with printing wrong column order of multiple CI columns in describe_posterior().
  • If the model formula transforms the response, for example with scale(y) or sqrt(y), rope_range() now uses the standard deviation of the transformed response. For linear models, the default ROPE is then on the same scale as the model parameters.
  • For multivariate *brms* models with resp_weights() and ordinal responses, rope_range() now returns one ROPE per response, without a warning.
  • If simulate_prior() or check_prior() cannot simulate a prior, for example a laplace or flat prior, it now gives a warning that names the parameters. Before, it returned a column of NA with no warning.
  • For *brms* models with a censored outcome, such as y | cens(censored), mediation() now works (#631). Before, it failed with an indexing error, such as "subscript out of bounds".
  • If the mediator enters the outcome model with mo(), mediation() now gives an informative error (#576). If a coefficient for the treatment or mediator is not in the model, the error names it. Before, both cases failed with an indexing error, such as "undefined columns selected".

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-10-17
  • WARNING12 OK, 1 WARNING2026-10-01
  • OK13 OK2026-09-16
  • ERROR9 OK, 3 WARNING, 1 ERROR2026-09-04
  • WARNING11 OK, 2 WARNING2026-05-25
Show 4 earlier changesHide 4 earlier changes
  • ERROR11 OK, 2 ERROR2026-05-22
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.20.0
READMEYes · 1,882 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.20.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
Help pages
62 (11 internal)includes a package overview page
Examples that run
64%30 run in a plain check (21 of them under a condition) · 16 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
Exported functions with examples
96%
Documented parameters
98%
Return-value docs
58%
Help pages citing references
47%

Downloads

1.2M
CRAN downloads in the past year
Rank #344 · ~3.3K/day · ~100.4K/mo
Daily download trend is not available in this view yet.
101.1K30 days
290.2K90 days
1.2M1 year
Compare downloads with other packages →
Also on18.8K r2u39 autocran19.4K conda_forge462 c2d4u

Repository

598Stars
63Forks
35Open issues
6Open PRs
23Releases
3,148Commits
30Commit identities
bayesianposterior-distributionsrrstatseasystatsropehdimap
License file reads as GPL-3.0 · 3,148 commits · Last activity 2026-10-16 · +0.3% stars, 30d · Discussions: 29 posts
Responsiveness
How these are sampled
PRs merged (all time)
94%
Median days to close, 50 most recently updated closed issues
33
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-13 · 5802026-10-10 · 598
PracticesBeta

20 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/easystats/bayestestr on 2026-10-11.

Continuous integration (1)
GitHub Actions
Governance and community (7)
Code of conductContributing guideIssue templatesPR templateFundingSupport guide

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-01

pkgdown site last built 2026-10-01, before release 0.20.0 (2026-10-16)

Coverage (1)
Coverage reporting
Show all practicesHide 4 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (4)
lintrLint workflowAirRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-11-16
    Pull request: opened by its own account
    Commits: 2 by its own account · at least 2 crediting it in the message
  • Gemini CLIfirst seen 2026-02-05
    Seen in the repository: GEMINI.md
    Named in .Rbuildignore: GEMINI.md
Review tools
  • Copilot code review
    Commits: at least 2 accepting its review suggestions
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
43 external dependencies (excludes base and recommended)

Installing bayestestR adds 2 packages (0 with compiled code, 1.6 MB of source tarballs). Heaviest: insight 1.2 MB, datawizard 432 KB.

Depends (1)
R >= 3.6
Imports (6)
insightdatawizardgraphicsmethodsstatsutils
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (12)
Author, Maintainer since 0.1.0 (2019)
Author · added in 0.2.0
Author · added in 0.9.0
Author · added in 0.11.0
Author · added in 0.15.0
Contributor · added in 0.7.5
Contributor · added in 0.3.0
Contributor · added in 0.19.0
Contributor · added in 0.3.0
Reviewer · added in 0.2.5
Reviewer · added in 0.2.5
Listed in earlier versions (1)
Michael D. Wilson
no longer listed · 0.2.2 to 0.14.0
Releases (37)

Pick two releases to compare their code metrics.

Show 30 earlier eventsHide 30 earlier events
  • R
    R 4.3.0 released · 2023-04-21
  • 0.13.1
    record
    2023-04-07 · diff ↗ ·
    removed 1 export
    reshape_ci
  • 0.13.0
    record
    2022-09-18 · diff ↗ ·
    added 4 exports
    contr.equalprior, contr.equalprior_deviations, contr.equalprior_pairs, p_to_bf
  • 0.12.1
    record
    2022-05-02 · diff ↗ ·
    added 1 export
    spi
  • R
    R 4.2.0 released · 2022-04-22
  • 0.11.5
    record
    2021-10-30 · diff ↗
  • 0.11.0
    record
    2021-09-03 · diff ↗ ·
    added 2 exports
    cwi, model_to_priors
  • 0.10.5
    record
    2021-07-26 · diff ↗ ·
    added 1 export
    simulate_simpson
  • 0.10.0
    record
    2021-05-31 · diff ↗ ·
    added 4 exports
    bcai, bci, contr.orthonorm, diagnostic_draws
  • R
    R 4.1.0 released · 2021-05-18
  • 0.9.0
    record
    2021-04-08 · diff ↗ ·
    removed 1 export
    mhdior
    added 10 exports
    bic_to_bf, distribution_binom, distribution_chisq, distribution_gaussian, distribution_student_t, distribution_t, print_html, print_md, reshape_draws, reshape_iterations
  • 0.8.2
    record
    2021-01-26 · diff ↗ ·
    removed 2 exports
    bayesfactor_pointull, bf_pointull
    added 2 exports
    bayesfactor_pointnull, bf_pointnull
  • 0.8.0
    record
    2020-12-05 · diff ↗ ·
    added 2 exports
    sexit, sexit_thresholds
  • 0.7.5
    record
    2020-10-22 · diff ↗ ·
    added 2 exports
    distribution_nbinom, unupdate
  • 0.7.2
    record
    2020-07-20 · diff ↗ ·
    added 1 export
    mediation
  • 0.7.0
    record
    2020-06-19 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.6.0
    record
    2020-04-20 · diff ↗
  • 0.5.3
    record
    2020-03-26 · diff ↗ ·
    added 1 export
    simulate_difference
  • 0.5.2
    record
    2020-02-12 · diff ↗
  • 0.5.1
    record
    2020-01-27 · diff ↗
  • 0.5.0
    record
    2020-01-18 · diff ↗ ·
    removed 1 export
    bayesfactor_savagedickey
    added 13 exports
    bayesfactor_pointull, bayesfactor_rope, bf_inclusion, bf_models, bf_parameters, bf_pointull, bf_restricted, bf_rope, distribution_tweedie, mhdior, p_pointnull, si, weighted_posteriors
  • 0.4.0
    record
    2019-10-20 · diff ↗ ·
    added 7 exports
    bayesian_as_frequentist, convert_bayesian_as_frequentist, distribution_binomial, overlap, p_significance, simulate_correlation, simulate_ttest
  • 0.3.0
    record
    2019-09-22 · diff ↗ ·
    added 4 exports
    check_prior, contr.bayes, distribution_gamma, simulate_prior
  • 0.2.5
    record
    2019-08-06 · diff ↗ ·
    removed 2 exports
    estimate_probability, probability_at
    added 5 exports
    bayesfactor_parameters, bayesfactor_restricted, eti, reshape_ci, sensitivity_to_prior
  • 0.2.2
    record
    2019-06-20 · diff ↗ ·
    added 5 exports
    convert_p_to_pd, convert_pd_to_p, distribution_mixture_normal, p_to_pd, pd_to_p
  • 0.2.0
    record
    2019-05-29 · diff ↗ ·
    added 24 exports
    area_under_curve, auc, bayesfactor, bayesfactor_inclusion, bayesfactor_models, bayesfactor_savagedickey, describe_posterior, describe_prior, diagnostic_posterior, distribution, distribution_beta, distribution_cauchy, distribution_chisquared, distribution_custom, distribution_normal, distribution_poisson, distribution_student, distribution_uniform, effective_sample, estimate_density, estimate_probability, mcse, point_estimate, probability_at
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    record
    2019-04-08
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-04-08
Total releases
37 / 7 yrs
License
GPL-3 OSI
Minimum R
≥ 3.6
Bundled data
0.4 KB / 1 file
Download size
576 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("bayestestR")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.21105/joss.01541.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bayestestR version 0.20.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy