wakefield_pp_quant {RapidoPGS} | R Documentation |
Compute posterior probabilities using Wakefield's approximate Bayes Factors for quantitative traits
Description
wakefield_pp_quant
computes posterior probabilities for a given SNP to be causal for a given SNP under the assumption of a single causal variant.
Usage
wakefield_pp_quant(beta, se, sdY, sd.prior = 0.15, pi_i = 1e-04)
Arguments
beta |
a vector of effect sizes ( |
se |
vector of standard errors of effect sizes ( |
sdY |
a scalar of the standard deviation given vectors of variance of coefficients, MAF and sample size. Can be calculated using |
sd.prior |
a scalar representing our prior expectation of |
pi_i |
a scalar representing the prior probability (DEFAULT |
Details
This function was adapted from wakefield_pp
in cupcake package (github.com/ollyburren/cupcake/)
Value
a vector of posterior probabilities.
Author(s)
Guillermo Reales, Chris Wallace