bf.cal.meta: Bayes Factor Calculation Scheme for META prior

Description Usage Arguments Value

View source: R/bf.cal.meta.R

Description

A function that calculates bayes factor for each data pair on each grid point in log scale.

Usage

1
bf.cal.meta(data, hyperparam = NULL, bf.only = FALSE)

Arguments

data

A dataset which is constructed by pairs of coefficient values β and standard errors se(β).

hyperparam

A two-dimensional vector denoting all the grid points, namely, φ x ω.

bf.only

A boolean, denoting whether this function is called to calculate Bayes factor for META prior only. Usually used when publication bias issue is the target.

Value

A list records all the log scale bayes factor values or a list records log scale bayes factor for null, reproducible and irreproducible model (when bf.only=TRUE).


INTRIGUE documentation built on Nov. 8, 2020, 4:30 p.m.