Calculates the log odds ratio for two probabilities.

log_odds_ratio(x, x2)

Arguments

x

A numeric object (vector, matrix or array) of probabilities.

x2

A second numeric object of probabilities.

Value

A numeric object of the log odds ratios.

See also

Other odds: inv_odds(), log_odds<-(), log_odds(), odds<-(), odds_ratio(), odds()

Examples

log_odds_ratio(0.5, 0.75)
#> [1] -1.098612