Skip to contents

Calculates the log odds ratio for a vector of two probabilities.

Usage

log_odds_ratio2(x)

Arguments

x

A numeric vector of length 2.

Value

A number.

See also

Other odds fun2: odds_ratio2()

Examples

log_odds_ratio2(c(0.5, 0.9))
#> [1] -2.197225
log_odds_ratio2(c(0.9, 0.5))
#> [1] 2.197225