HH (version 2.2-17)

logit: Logistic function and its inverse.

Description

Logistic function and its inverse.

Usage

logit(p)
antilogit(x)

Arguments

Value

Vector of real values 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.

Examples

Run this code
logit(seq(0,1,.1))
antilogit(logit(seq(0,1,.1)))

Run the code above in your browser using DataLab