adjust_bfs: adjust_bfs

Description Usage Arguments Value Author(s) Examples

View source: R/functions_moloc.R

Description

Adjusted Bayes factors for each SNP and each single association and combinations of sharing/not sharing of causal variants across the datasets in the input data

Usage

1
adjust_bfs(listData, prior_var = "default")

Arguments

listData

A list of data frames to be analyzed. Each data frame must contain columns named SNP (the SNP name consistent across all the data frames), BETA, SE

prior_var

One or more numbers for the prior variance of the ABF.

compute_sdY

Estimate standard deviation of Y. If false assume sdY is 1

Value

An array containing the log adjusted Bayes Factors for each SNP and for each SNP and each configuration combination

Author(s)

Claudia Giambartolomei, Jimmy Liu

Examples

1
2
3
ABF <- adjust_bfs(listData, prior_var=c(0.01, 0.1, 0.5))
to view all configuration combinations for a SNP called "bp38878088"
ABF["bp38878088",,]

clagiamba/moloc documentation built on Jan. 25, 2021, 2:43 a.m.