getBF: Calculate Bayes Factors

View source: R/plotHelpers.R

getBFR Documentation

Calculate Bayes Factors

Description

Calculate Bayes Factors

Usage

getBF(
  object,
  assay.postprob = "prob",
  assay.name = "bayes_factors",
  prior.params = list(a_pi = 2, b_pi = 300)
)

Arguments

object

PhIPData object

assay.postprob

string indicating the assay where posterior probabilities are stored.

assay.name

name indicating where the results should be stored in the PhIPData object

prior.params

prior parameters for the probability of enrichment (a_pi, b_pi)

Value

PhIPData object with the results stored in the location specified by assay.name.

Examples

sim_data <- readRDS(system.file("extdata", "sim_data.rds", package = "beer"))

## Calculate Bayes Factors
getBF(sim_data, "prob", "bayes_factor")


athchen/beer documentation built on July 2, 2022, 10:35 p.m.