logL0: Logarithm of L0, evaluated at a specific mu

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

View source: R/logL0.R

Description

Logarithm of L0, evaluated at a specific mu

Usage

1
logL0(mu, y, sig, sig_prior = 2)

Arguments

mu

a numeric entry giving the value where the expression will be evaluated

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

Details

This is an auxiliary function to calculate the L0 distribution in nullmass, which is called to compute the Bayes Factor by BFbias

Value

the value of L0 evaluated at mu

Author(s)

Aldo Cordova-Palomera

See Also

nullmass, BFbias

Examples

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

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