Skip to contents

Calculates the odds for probabilities.

Usage

odds(x)

Arguments

x

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

Value

A numeric object of the the odds for each probability.

Examples

odds(c(0, 0.5, 0.9, 1))
#> [1]   0   1   9 Inf