BayesRep {BayesRep}R Documentation

BayesRep package

Description

The BayesRep package provides various tools for Bayesian analysis of replication studies.

repPosterior visualizes the posterior distribution of the effect size based on both studies. BFs computes the sceptical Bayes factor (Pawel and Held, 2022), BFr computes the replication Bayes factor (Verhagen and Wagenmakers, 2014), and BFe computes the equality of effect size Bayes factor (Bayarri and Mayorall, 2002).

These functions take effect estimates and their standard errors from original and replication study as inputs. Throughout, original effect estimate and standard error are denoted by to and so and replication effect estimate and standard error are denoted tr and sr. It is assumed that each effect estimate is normally distributed around its true underlying effect size with variance equal to its squared standard error

\code{to} \, | \, \theta_o \sim \mathrm{N}(\theta_o, \code{so}^2) ~ \mathrm{and} ~ \code{tr} \, | \, \theta_r \sim \mathrm{N}(\theta_r, \code{sr}^2).

These assumptions may be inadequate for studies with small sample size (there are special functions for data with continuous outcomes and standardized mean difference effect size, BFsSMD and BFrSMD, and binary outcomes with log odds ratio effects, BFslogOR and BFrlogOR, which are based on the exact distribution of the data). If not specified otherwise, it is assumed that the true effect sizes from both studies are the same (\theta_o = \theta_r).

References

Bayarri, M. and Mayorall, A. (2002). Bayesian Design of "Successful" Replications. The American Statistician, 56(3): 207-214. doi:10.1198/000313002155

Verhagen, J. and Wagenmakers, E. J. (2014). Bayesian tests to quantify the result of a replication attempt. Journal of Experimental Psychology: General, 145:1457-1475. doi:10.1037/a0036731

Pawel, S. and Held, L. (2022). The sceptical Bayes factor for the assessment of replication success. Journal of the Royal Statistical Society Series B: Statistical Methodology, 84(3): 879-911. doi:10.1111/rssb.12491


[Package BayesRep version 0.42.2 Index]