Description Usage Arguments Value Examples
View source: R/logitfunctions.R
This is the inverse of the function that calculates odds from probabilities.
For any given value of odds, the corresponding probability p
where
odds = p/(1-p)
is returned.
1 | odds_to_probs(odds)
|
odds |
A numeric vector of non-negative values, representing odds. |
A numeric vector of probabilities.
1 2 | odds <- c(1, 3, 9)
odds_to_probs(odds)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.