Functions to take the expit and logit of numerical vectors.
vector of real numbers; for
logit implements the usual logit function, which is
logit(x) = log(x/(1-x)),
expit its inverse:
expit(x) = e^x/(1+e^x).
It is assumed
logit(0) = -Inf and
logit(1) = Inf, and correspondingly
A real vector corresponding to the expits or logits of
Choosing very large (positive or negative) values to
expit may result in inaccurate inversion (see example
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.