logit computes \(log( p / (1-p))\), i.e. maps the interval \([0, 1]\) to the interval of \((-\infty, \infty)\).

logit(p)

Arguments

p

a number in the range of <0, 1>

Value

logit

See also

Examples

logit(0)
#> [1] -Inf
logit(.5)
#> [1] 0
logit(1)
#> [1] Inf