Description Usage Arguments Value Examples
Get odds ratio distribution
1 | get_or_distribution(counts, k = 0.5, nsim = 1e+07)
|
counts |
(4x1) matrix with counts n11, n00, n10, n01 from contingency table |
k |
double; concentration of beta priors: 0.5 for Jeffreys prior, 1 for uniform priors |
nsim |
interger |
double, odds ratio distribution
1 2 | c <- c(5,2,10,7) # n11, n00, n10, n01
or_dist <- get_or_distribution(c, nsim = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.