Compute odds from probabilities. The function is vectorized and
can handle a vector of probabilities, e.g. remaining percent of participants
as calculated by compute_stats()
.
Examples
get_odds(0.7)
#> [1] 2.333333
get_odds(c(0.7, 0.2))
#> [1] 2.333333 0.250000