View source: R/pval_mediation.R
get_approx_pval | R Documentation |
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.
get_approx_pval(
bmediatR_object,
model_type = c("mediation", "partial", "complete", "colocal"),
med_annot,
med_var = "protein.id"
)
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. |
get_approx_pval()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.