Calculate the odds ratio from a 2 by 2 table.

getOR(x)

Arguments

x

A two by two matrix.

Value

The odds ratio calculated from x.

Author

Andrew E Jaffe

Examples


getOR(matrix(seq_len(4), ncol = 2))
#> [1] 0.6666667