nullmass: Value of the definite integral of L0, evaluated around the...

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

View source: R/nullmass.R

Description

Value of the definite integral of L0, evaluated around the distribution's mean

Usage

1
nullmass(y, sig, sig_prior = 2)

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

Details

This is an auxiliary function to obtain the definite integral of L0, evaluated around the distribution's mean. It calls the logL0 function, and performs integration using integrate. The output is later called by BFbias to compute the Bayes Factor.

Value

the value of the definite integral of the L0 distribution, evaluated around its mean (+-10 standard deviations)

Author(s)

Aldo Cordova-Palomera

See Also

logL0, BFbias

Examples

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

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