Learn R Programming

rpf (version 1.0.14)

logit: Transform from [0,1] to the reals

Description

The logit function is a standard transformation from [0,1] (such as a probability) to the real number line. This function is exactly the same as qlogis.

Usage

logit(p, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)

Arguments

p

a number between 0 and 1

location

see qlogis

scale

see qlogis

lower.tail

see qlogis

log.p

see qlogis

See Also

qlogis, plogis

Examples

Run this code
logit(.5)  # 0
logit(.25) # -1.098
logit(0)   # -Inf

Run the code above in your browser using DataLab