View source: R/logit-antilogit.R
logit | R Documentation |
Calculates the logit transformation of a probability (p), defined as log(p/(1-p)). The logit function is the inverse of the logistic function.
logit(x)
x |
Numeric value or vector of probabilities between 0 and 1 |
The logit-transformed value(s)
logit(0.5) # Returns 0
logit(0.75) # Returns ~1.099
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.