odds | R Documentation |
odds | converts probability to odds |
logOdds | converts odds to log-odds |
invOdds | converts odds to probability |
invLogOdds | converts log-odds to odds |
odds(x)
logOdds(x)
invOdds(x)
invLogOdds(x)
x |
a numeric vector of probabilities (0 to 1), odds (0 to Inf), or log.odds (-Inf to Inf). |
Eric Archer eric.archer@noaa.gov
x <- sort(runif(10))
odds.df <- data.frame(x = x, odds = odds(x), logOdds = logOdds(x))
odds.df
invOdds(odds.df$odds)
invLogOdds(odds.df$logOdds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.