Computes the inverse logit transformation.
Examples
expit(0) # returns 0.5
#> [1] 0.5
expit(c(-2, 0, 2))
#> [1] 0.1192029 0.5000000 0.8807971
Computes the inverse logit transformation.
expit(0) # returns 0.5
#> [1] 0.5
expit(c(-2, 0, 2))
#> [1] 0.1192029 0.5000000 0.8807971