Skip to contents

logit(p) = log(p / (1 - p)), a wrapper for stats::qlogis()

Usage

logit(...)

Arguments

...

A numeric vector of values between 0 and 1, and other named arguments to stats::qlogis() if desired.

Value

A numeric vector

Examples

logit(0.5)
#> [1] 0
logit(log(0.5), log.p = TRUE)
#> [1] 0