logit
From HH v2.1-23
by Richard Heiberger
Logistic function and its inverse.
Logistic function and its inverse.
- Keywords
- math
Usage
logit(p)
antilogit(x)
Arguments
- p
- Probability value, a vector of numbers between 0 and 1, inclusive.
- x
- Real number, a vector of numbers between
-Inf
andInf
.
Value
- Vector of real values
log(p/(1-p))
forlogit
. Vector of probabilitiesexp(x)/(1+exp(x))
forantilogit
with boundary values of-Inf
andInf
forx
correctly handled.
Examples
logit(seq(0,1,.1))
antilogit(logit(seq(0,1,.1)))
Community examples
Looks like there are no examples yet.