BFbias: Computes the Bayes Factor for bias

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/BFbias.R

Description

Computes the Bayes Factor for bias

Usage

1
BFbias(y, sig, sig_prior = 2, Z = 1.96)

Arguments

y

a vector of length n (n=number of studies) representing the effect (standardized mean difference)

sig

a vector of length n (n=number of studies) representing the corresponding sampling standard deviation sqrt(variance)

sig_prior

a numeric entry representing the standard deviation's prior; default: 2

Z

a numeric entry representing the Z value; default: 1.96

Details

Computes the Bayes Factor for bias in a Meta-Analysis

Value

the value of the Bayes Factor

Author(s)

Aldo Cordova-Palomera

See Also

logL0 logL nullmass lmass

Examples

1
2
3
library(metafor)
dat <- get(data(dat.bangertdrowns2004))
BFbias(dat$yi, sqrt(dat$vi))

AldoCP/MetaBiasR documentation built on May 5, 2019, 1:36 p.m.