get_or_distribution: Get odds ratio distribution

Description Usage Arguments Value Examples

View source: R/odds_ratio.R

Description

Get odds ratio distribution

Usage

1
get_or_distribution(counts, k = 0.5, nsim = 1e+07)

Arguments

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

Value

double, odds ratio distribution

Examples

1
2
c <- c(5,2,10,7) # n11, n00, n10, n01
or_dist <- get_or_distribution(c, nsim = 10)

Famondir/birtms documentation built on Feb. 18, 2022, 2:51 a.m.