Skip to contents

bayestestR 0.13.2

Breaking Changes

  • pd_to_p() now returns 1 and a warning for values smaller than 0.5.

  • map_estimate(), p_direction(), p_map(), and p_significance() now return a data-frame when the input is a numeric vector. (making the output consistently a data frame for all inputs.)

  • Argument posteriors was renamed into posterior. Before, there were a mix of both spellings, now it is consistently posterior.


  • Retrieving models from the environment was improved.

Bug fixes

  • Fixed issues in various format() methods, which did not work properly for some few functions (like p_direction()).

  • Fixed issue in estimate_density() for double vectors that also had other class attributes.

  • Fixed several minor issues and tests.

bayestestR 0.13.1

CRAN release: 2023-04-07


  • Improved speed performance when functions are called using

  • Improved speed performance to bayesfactor_models() for brmsfit objects that already included a marglik element in the model object.

New functionality

Bug fixes

  • p_map() gains a new null argument to specify any non-0 nulls.

  • Fixed non-working examples for ci(method = "SI").

  • Fixed wrong calculation of rope range for model objects in describe_posterior().

  • Some smaller bug fixes.

bayestestR 0.13.0

CRAN release: 2022-09-18


  • The minimum needed R version has been bumped to 3.6.

  • contr.equalprior(contrasts = FALSE) (previously contr.orthonorm) no longer returns an identity matrix, but a shifted diag(n) - 1/n, for consistency.

New functionality

  • p_to_bf(), to convert p-values into Bayes factors. For more accurate approximate Bayes factors, use bic_to_bf().
  • bayestestR now supports objects of class rvar from package posterior.
  • contr.equalprior (previously contr.orthonorm) gains two new functions: contr.equalprior_pairs and contr.equalprior_deviations to aide in setting more intuitive priors.


  • has been renamed contr.equalprior to be more explicit about its function.
  • p_direction() now accepts objects of class parameters_model() (from parameters::model_parameters()), to compute probability of direction for parameters of frequentist models.

bayestestR 0.12.1

CRAN release: 2022-05-02


  • Bayesfactor_models() for frequentist models now relies on the updated insight::get_loglikelihood(). This might change some results for REML based models. See documentation.

  • estimate_density() argument group_by is renamed at.

  • All distribution_*(random = FALSE) functions now rely on ppoints(), which will result in slightly different results, especially with small ns.

  • Uncertainty estimation now defaults to "eti" (formerly was "hdi").


  • bayestestR functions now support draws objects from package posterior.

  • rope_range() now handles log(normal)-families and models with log-transformed outcomes.

  • New function spi(), to compute shortest probability intervals. Furthermore, the "spi" option was added as new method to compute uncertainty intervals.

Bug fixes

  • bci() for some objects incorrectly returned the equal-tailed intervals.

bayestestR 0.11.5

CRAN release: 2021-10-30

  • Fixes failing tests in CRAN checks.

bayestestR 0.11.1

New functions

bayestestR 0.11

Bug fixes

  • Fixed issues related to last brms update.

  • Fixed bug in describe_posterior.BFBayesFactor() where Bayes factors were missing from out put ( #442 ).

bayestestR 0.10.0

CRAN release: 2021-05-31


  • All Bayes factors are now returned as log(BF) (column name log_BF). Printing is unaffected. To retrieve the raw BFs, you can run exp(result$log_BF).

New functions

  • bci() (and its alias bcai()) to compute bias-corrected and accelerated bootstrap intervals. Along with this new function, ci() and describe_posterior() gain a new ci_method type, "bci".


  • contr.bayes has been renamed contr.orthonorm to be more explicit about its function.

bayestestR 0.9.0

CRAN release: 2021-04-08


  • The default ci width has been changed to 0.95 instead of 0.89 (see here). This should not come as a surprise to the long-time users of bayestestR as we have been warning about this impending change for a while now :)

  • Column names for bayesfactor_restricted() are now p_prior and p_posterior (was Prior_prob and Posterior_prob), to be consistent with bayesfactor_inclusion() output.

  • Removed the experimental function mhdior.


  • Support for blavaan models.

  • Support for blrm models (rmsb).

  • Support for BGGM models (BGGM).

  • check_prior() and describe_prior() should now also work for more ways of prior definition in models from rstanarm or brms.

Bug fixes

bayestestR 0.8.2

CRAN release: 2021-01-26


  • Support for bamlss models.

  • Roll-back R dependency to R >= 3.4.

Changes to functions

  • All .stanreg methods gain a component argument, to also include auxiliary parameters.

Bug fixes

bayestestR 0.8.0

CRAN release: 2020-12-05

New functions

  • sexit(), a function for sequential effect existence and significance testing (SEXIT).


  • Added startup-message to warn users that default ci-width might change in a future update.

  • Added support for mcmc.list objects.

Bug fixes

  • unupdate() gains a newdata argument to work with brmsfit_multiple models.

  • Fixed issue in Bayes factor vignette (don’t evaluate code chunks if packages not available).

bayestestR 0.7.5

CRAN release: 2020-10-22

New functions

  • Added as.matrix() function for bayesfactor_model arrays.

  • unupdate(), a utility function to get Bayesian models un-fitted from the data, representing the priors only.

Changes to functions

  • ci() supports emmeans - both Bayesian and frequentist ( #312 - cross fix with parameters)

Bug fixes

  • Fixed issue with default rope range for BayesFactor models.

  • Fixed issue in collinearity-check for rope() for models with less than two parameters.

  • Fixed issue in print-method for mediation() with stanmvreg-models, which displays the wrong name for the response-value.

  • Fixed issue in effective_sample() for models with only one parameter.

  • rope_range() for BayesFactor models returns non-NA values ( #343 )

bayestestR 0.7.2

CRAN release: 2020-07-20

New functions

  • mediation(), to compute average direct and average causal mediation effects of multivariate response models (brmsfit, stanmvreg).

Bug fixes

bayestestR 0.7.0

CRAN release: 2020-06-19


  • Preliminary support for stanfit objects.

  • Added support for bayesQR objects.

Changes to functions

Bug fixes

  • Link transformation are now taken into account for emmeans objets. E.g., in describe_posterior().

  • Fix diagnostic_posterior() when algorithm is not “sampling”.

  • Minor revisions to some documentations.

  • Fix CRAN check issues for win-old-release.

bayestestR 0.6.0

CRAN release: 2020-04-20

Changes to functions

Bug fixes

bayestestR 0.5.3

CRAN release: 2020-03-26


  • Support for bcplm objects (package cplm)

Changes to functions

Bug fixes

bayestestR 0.5.0

CRAN release: 2020-01-18


Breaking changes

  • point_estimate(): argument centrality default value changed from ‘median’ to ‘all’.

  • p_rope(), previously as exploratory index, was renamed as mhdior() (for Max HDI inside/outside ROPE), as p_rope() will refer to rope(..., ci = 1) ( #258 )

Bug fixes

  • Fixed mistake in description of p_significance().

  • Fixed error when computing BFs with emmGrid based on some non-linear models ( #260 ).

  • Fixed wrong output for percentage-values in print.equivalence_test().

  • Fixed issue in describe_posterior() for BFBayesFactor-objects with more than one model.

bayestestR 0.4.0

CRAN release: 2019-10-20

New functions / features

Bug fixes

  • Fixed bug in simulate_prior() for stanreg-models when autoscale was set to FALSE

bayestestR 0.3.0

CRAN release: 2019-09-22


New functions / features

  • check_prior() to check if prior is informative

  • simulate_prior() to simulate model’s priors as distributions

  • distribution_gamma() to generate a (near-perfect or random) Gamma distribution

  • contr.bayes function for orthogonal factor coding (implementation from Singmann & Gronau’s bfrms, used for proper prior estimation when factor have 3 levels or more. See Bayes factor vignette ## Changes to functions

  • Added support for sim, sim.merMod (from arm::sim()) and MCMCglmm-objects to many functions (like hdi(), ci(), eti(), rope(), p_direction(), point_estimate(), …)

  • describe_posterior() gets an effects and component argument, to include the description of posterior samples from random effects and/or zero-inflation component.

  • More user-friendly warning for non-supported models in bayesfactor()-methods

Bug fixes

bayestestR 0.2.5

CRAN release: 2019-08-06

Breaking changes

  • rope_range() for binomial model has now a different default (-.18; .18 ; instead of -.055; .055)

  • rope(): returns a proportion (between 0 and 1) instead of a value between 0 and 100

  • p_direction(): returns a proportion (between 0.5 and 1) instead of a value between 50 and 100 (#168)

  • bayesfactor_savagedickey(): hypothesis argument replaced by null as part of the new bayesfactor_parameters() function

New functions / features

Minor changes

Bug fixes

bayestestR 0.2.2

CRAN release: 2019-06-20

Breaking changes

New functions / features

Minor changes

  • Improved tutorial 2

Bug fixes

bayestestR 0.2.0

CRAN release: 2019-05-29

Breaking changes

New functions / features

Minor changes

  • Improved documentation

  • Improved testing

  • p_direction(): improved printing

  • rope() for model-objects now returns the HDI values for all parameters as attribute in a consistent way

  • Changes legend-labels in plot.equivalence_test() to align plots with the output of the print()-method (#78)

Bug fixes

  • hdi() returned multiple class attributes (#72)

  • Printing results from hdi() failed when ci-argument had fractional parts for percentage values (e.g. ci = 0.995).

  • plot.equivalence_test() did not work properly for brms-models (#76).

bayestestR 0.1.0

CRAN release: 2019-04-08

  • CRAN initial publication and 0.1.0 release

  • Added a file to track changes to the package