lor_f
sample from log(or) posterior distribution given an allele frequency.lor_f.Rd
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.
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