View source: R/Transform_Functions.R
p2odds | R Documentation |
This function converts probability values into odds values.
p2odds(p)
p |
A numeric value (or vector) for the probabilities to be converted. NA values are acceptable, but will return NA. All numeric values must fall in the closed unit interval, [0, 1]. |
=============================================================================
This function uses the formula odds = p/(1 - p).
A numeric value (or vector) for the odds values.
To be added later.
p2odds(.3)
p2odds(c(0, .1, .5, .75, .99, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.