Calculates the probabilities for odds.

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_ratio(), log_odds(), odds<-(), odds_ratio(), odds()

Examples

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