logL: Logarithm of L, evaluated at specific mu and eta

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

View source: R/logL.R

Description

Logarithm of L, evaluated at specific mu and eta

Usage

1
logL(mu, eta, y, sig, sig_prior = 2, Z = 1.96)

Arguments

mu

a numeric entry with the value of mu where the expression will be evaluated

eta

a numeric entry with the value of eta 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

Z

a numeric entry representing the Z value; default: 1.96

Details

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

Value

the value of L evaluated at mu and eta

Author(s)

Aldo Cordova-Palomera

See Also

mass, BFbias

Examples

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

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