logit | R Documentation |
Transform real values to the logit scale, and the inverse.
logit(x)
invlogit(y)
x |
vector of numeric values in (0,1) (possibly a probability) |
y |
vector of numeric values |
The logit transformation is defined as \mathrm{logit}(x) = \mathrm{log}( \frac{x}{1-x})
for x \in (0,1)
.
Numeric value on requested scale.
logit
is equivalent to qlogis
, and invlogit
is equivalent to plogis
(both R functions in the stats package).
logit
and invlogit
are used in secr because they are slightly more robust to bad input, and their names are more memorable!
logit(0.5)
invlogit(logit(0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.