get_odds | R Documentation |
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()
.
get_odds(p)
p |
vector of probabilities. May not be larger than 1 or smaller than zero. |
Returns numerical vector of the same length as original input reflecting the odds.
get_odds(0.7)
get_odds(c(0.7, 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.