The logit function

logit(p)

Arguments

p

a probability or vector of probabilities

Value

the logit of the probability

See also

Other utils: expose_stan_fns(), inv_logit()

Examples

logit(c(0.01, 0.1, 0.5, 0.9, 1))
#> [1] -4.595120 -2.197225  0.000000  2.197225       Inf