Description Usage Arguments Value Author(s) References See Also Examples
For a set of summary data from a genome-wide association study, provides an approximate Bayes factor for evidence of association of the trait with the SNP vs non-association.
1 |
beta |
A single value or numeric vector. It should represent the observed effect size of a SNP on a trait from a genome-wide association study. |
se |
A single value or numeric vector that corresponds to the value(s) in |
prior.sigma |
A single value or numeric vector. This is the prior on true effect sizes. If |
log |
When |
log10 |
When |
If beta
and se
are vectors, then the output will be a numeric vector of Wakefield's approximate Bayes factors corresponding to the elements of beta
and se
. Otherwise, this function outputs a single numeric value.
Trochet, Holly
Wakefield, Jon. Bayes Factors for Genome-Wide Association Studies: Comparison with P-values. Genetic Epidemiology. 33:79–76. 2009.
1 2 3 4 5 6 7 8 9 10 | ##Test run on the Cotsapas data
#Get all the data for MS
MS <- cotsapas[,grep("^MS", names(cotsapas))]
MS[1:10,]
wakefield.abf(MS$MS.beta, MS$MS.SE, prior.sigma = 0.2)
#For a single value
i<-1
wakefield.abf(cotsapas$SLE.beta[i], cotsapas$SLE.SE[i], prior.sigma = 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.