Compute odds from probabilities. The function is vectorized and can handle a vector of probabilities.

1

get_odds(p)

p

vector of probabilities. May not be larger than 1 or smaller than zero.

get_odds(.8) # 4

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.