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