powered by
Transform real values to the logit scale, and the inverse.
logit(x) invlogit(y)
vector of numeric values in (0,1) (possibly a probability)
vector of numeric values
Numeric value on requested scale.
The logit transformation is defined as \(\mathrm{logit}(x) = \mathrm{log}( \frac{x}{1-x})\) for \(x \in (0,1)\).
# NOT RUN { logit(0.5) invlogit(logit(0.2)) # }
Run the code above in your browser using DataLab