get_approx_pval: Function that calculate approximate p-values for posterior...

View source: R/pval_mediation.R

get_approx_pvalR Documentation

Function that calculate approximate p-values for posterior odds

Description

This function takes posterior odds results from bmediatR() and calculates approximate p-values based on comparisons to genome results, using the assumption that the vast majority of candidates are not mediators and can thus be used to characterize a null distribution of posterior odds.

Usage

get_approx_pval(
  bmediatR_object,
  model_type = c("mediation", "partial", "complete", "colocal"),
  med_annot,
  med_var = "protein.id"
)

Arguments

bmediatR_object

Output from bmediatR().

model_type

DEFAULT: "mediation". Specifies which model(s)'s posterior probabilities are to be included in the numerator of the posterior odds and then displayed for for genome-wide mediators.

med_annot

Annotation data for -omic mediators.

Examples

get_approx_pval()

wesleycrouse/bmediatR documentation built on April 28, 2023, 4:01 p.m.