Convert from Odds Ratio to Probability

e_convert_oddsratio_to_probability(or = NULL, sw_percent = FALSE)

Arguments

or

list of odds ratios

sw_percent

T/F return as percent, instead?

Value

p list of probabilities

Examples

or <- c(0, 1/9, 1/4, 1/2, 1, 2, 4, 9)
e_convert_oddsratio_to_probability(or)
#> [1] 0.0000000 0.1000000 0.2000000 0.3333333 0.5000000 0.6666667 0.8000000
#> [8] 0.9000000