
logit(p)
antilogit(x)
odds(p)
antiodds(o)
-Inf
and Inf
.0
and Inf
.log(p/(1-p))
for logit
.
Vector of probabilities exp(x)/(1+exp(x))
for antilogit
with
boundary values of -Inf
and Inf
for x
correctly handled.
Vector of real values p/(1-p)
for odds
.
Vector of probabilities o/(o+1)
for antiodds
with the
boundary value of Inf
for o
correctly handled.logit(seq(0, 1, .1))
antilogit(logit(seq(0, 1, .1)))
odds(seq(0, 1, .1))
antiodds(odds(seq(0, 1, .1)))
Run the code above in your browser using DataLab