Description Usage Arguments Value
View source: R/posterior_lor.R
This function samples from the posterior distribution of a given control allele frequency, for different genotype configurations
lor_f
sample from log(or) posterior distribution given an allele frequency.
1 | lor_f(f0, n, target.or, target.prob, n.steps)
|
f0 |
a scalar - allele frequency in cases to simulate |
n |
a scalar - number of individuals sampled |
target.or |
a scalar - an odds ratio threshold to compute P(sim.or > target.or) |
target.prob |
a scalar - a probability that a sampled variant will exceed target.or |
n.steps |
an integer - length of search grid to employ - larger gives a more accurate integral estimate |
a list object
00 - mean lor for reference hom
01 - mean lor for het
11 - mean lor for alternative hom
quant00 - quantiles for posterior distribution of allele frequency in cases for ref hom
quant01 - quantiles for posterior distribution of allele frequency in cases for het
quant11 - quantiles for posterior distribution of allele frequency in cases for alt hom
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.