R/odds.R
odds_ratio2.Rd
Calculates the odds ratio for a vector of two probabilities.
odds_ratio2(x)
A numeric vector of length 2.
A number.
Other odds fun2: log_odds_ratio2()
log_odds_ratio2()
odds_ratio2(c(0.5, 0.9)) #> [1] 0.1111111 odds_ratio2(c(0.9, 0.5)) #> [1] 9