Description Usage Arguments Value
View source: R/posterior_lor.R
This function samples from the posterior distribution of log(OR) based on the observation of a case genotype
post_lor
samples from the posterior distribution of log(OR) given genotype.
1 |
gt |
a scalar - takes the values 0 - reference hom, 1 - het, 2 - alternative hom. |
a1 |
a scalar - beta distribution alpha shape parameter for prior on allele frequency in cases |
b1 |
a scalar - beta distribution beta shape parameter for prior on allele frequency in cases |
p0 |
a vector - a set of samples from beta(a0,b0) i.e. prior on control allele frequency |
nsim |
a scalar - number of log odds ratios to simulate from the posterior distribution |
vector of simulated log(OR) from the posterior.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.