Description Usage Arguments Value
View source: R/posterior_lor.R
This function computes the optimal shape parameter a1 for a given set of constraints
shape parameters estimate the P(OR > target.or).
fopt
estimate the P(OR > target.or) given shape parameters for case and control allele frequency
1 | fopt(a1, target.prob, target.or, p, a0, b0)
|
a1 |
a scalar - beta distribution alpha shape parameter for prior on allele frequency in cases |
target.prob |
a scalar - a probability that a sampled variant will exceed target.or |
target.or |
a scalar - an odds ratio threshold to compute P(sim.or > target.or) |
p |
- a vector of values to optimise over |
a0 |
a scalar - beta distribution alpha shape parameter for prior on allele frequency in controls |
b0 |
a scalar - beta distribution beta shape parameter for prior on allele frequency in controls |
scalar - P(sim.or>target.or)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.