Learn R Programming

faraway (version 1.0.8)

logit: Logit transformation

Description

Computes the logit transformation

Usage

logit(x)

Value

log(x/(1-x))

Arguments

x

a numeric vector

Author

Julian Faraway

Details

x <=0 or >=1 will return NA

See Also

ilogit

Examples

Run this code
logit(c(0.1,0.5,1.0,1.1))
#[1] -2.197225  0.000000        NA        NA

Run the code above in your browser using DataLab