Expit, Logit, and odds
Compute the expit and logit of a numerical vector. Transform odds to probability.
expit(x) logit(x) odds(x)
x |
vector of real values. |
logit computes the logit function:
logit(p) = log(p/(1-p)),
expit computes the expit function:
expit(x) = e^x/(1+e^x).
odds transform an odd into a probability.
odds(x) = x/(1-x)
Those functions become numerically unstable if evaluated at the edge or the definition range.
A real vector corresponding to the expit, the logit or the odds of the input values.
Gilles Kratzer
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.