Skip to contents

The function runs a modified version of FOCUS's Bayes factor calculation

Usage

bayes_factor(
  zscores,
  idx_set,
  wcor,
  prior_chisq = 40,
  prb = 0.001,
  use_log = T
)

Arguments

zscores

numeric, vector of Z-scores

idx_set

character, ids of transcripts

wcor

numeric, correlation matrix from estimate_cor

prior_chisq

numeric, prior for chi-square mean

prb

numeric, prior for causal configuration

use_log

logical, use log of bayes factors

Value

bayes factor vector