expit.Rd
expit
computes \(exp(x) / (1 + exp(x))\), i.e. the inverse to
logit
, i.e. it maps the interval \((-\infty, \infty)\)
to the interval of \([0, 1]\).
expit(x)
x | a number |
---|
expit of x
'logit'
expit(-1e10)#> [1] 0expit(0)#> [1] 0.5expit(1e10)#> [1] NaN