Learn R Programming

faraway (version 1.0.3)

logit: Logit transformation

Description

Computes the logit transformation

Usage

logit(x)

Arguments

x
a numeric vector

Value

  • log(x/(1-x))

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