powered by
The expit function: f(x) = exp(x) / (1+exp(x)), computed in a way to avoid numerical underflow.
expit(x)
a number or real-valued vector
a value or a numeric vector between 0 and 1 (exclusive)
expit(0.2) expit(c(-1, -0.3, 0.6))
Run the code above in your browser using DataLab