expit | R Documentation |
The expit function: f(x) = exp(x) / (1+exp(x)), computed in a way to avoid numerical underflow.
expit(x)
x |
a value or a numeric vector between 0 and 1 (exclusive) |
a number or real-valued vector
expit(0.2)
expit(c(-1, -0.3, 0.6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.