R/helpers.R
logit.Rd
Computes the logit transformation.
logit(x)
(numeric) the function argument.
numeric
The logit of x, computed as log(x / (1 - x)).
x
log(x / (1 - x))
logit(0.5) #> [1] 0 logit(c(0.1, 0.5, 0.9)) #> [1] -2.197225 0.000000 2.197225