logit function

Logit transformation

Logit transformation

Computes the logit transformation

logit(x)

Arguments

  • x: a numeric vector

Returns

log(x/(1-x))

Details

x <=0 or >=1 will return NA

Examples

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

See Also

ilogit

Author(s)

Julian Faraway