Description Usage Arguments Value Examples
View source: R/logitfunctions.R
Odds are an alternative means to quantify probabilities of events.
If the probability of an event has a value p
, the odds corresponding
to p
is p/(1-p)
.
1 |
p |
A numeric vector of probabilities, which are values between 0.0 and 1.0. |
A numeric vector of odds, which are values between zero and infinity.
1 2 | p <- c(0.25, 0.5, 0.75)
probs_to_odds(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.