Skip to contents

Calculates the probabilities for odds.

Usage

inv_odds(x)

Arguments

x

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

Value

A numeric object of the the probabilities for each odd.

See also

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

Examples

inv_odds(c(0, 1, 9, 9999))
#> [1] 0.0000 0.5000 0.9000 0.9999