predicted_bf: Predicted Bayes Factors for a New Study

View source: R/predicted_bf.R

predicted_bfR Documentation

Predicted Bayes Factors for a New Study

Description

How much can be learned by an additional study? To judge this, this function samples the distribution of predicted Bayes factors for a new study given the current evidence.

Usage

predicted_bf(meta, SE, sample = 100, ...)

Arguments

meta

model-averaged meta-analysis (fitted with meta_bma).

SE

a scalar: the expected standard error of future study. For instance, SE = 1/sqrt(N) for standardized effect sizes and N = sample size)

sample

number of simulated Bayes factors

...

further arguments passed to rstan::sampling to draw posterior samples for d and tau.


danheck/metaBMA documentation built on Feb. 10, 2024, 7:42 a.m.