powered by
odds
logOdds
invOdds
invLogOdds
odds(x)logOdds(x)invOdds(x)invLogOdds(x)
logOdds(x)
invOdds(x)
invLogOdds(x)
a numeric vector of probabilities (0 to 1), odds (0 to Inf), or log.odds (-Inf to Inf).
# NOT RUN { 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) # }
Run the code above in your browser using DataLab