get_odds: Compute Odds From Probabilities

View source: R/compute_odds.R

get_oddsR Documentation

Compute Odds From Probabilities

Description

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().

Usage

get_odds(p)

Arguments

p

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

Value

Returns numerical vector of the same length as original input reflecting the odds.

Examples

get_odds(0.7)
get_odds(c(0.7, 0.2))



mbannert/dropR documentation built on June 15, 2025, 3:12 a.m.