logit: Logit transformation

View source: R/faraway.R

logitR Documentation

Logit transformation

Description

Computes the logit transformation

Usage

logit(x)

Arguments

x

a numeric vector

Details

x <=0 or >=1 will return NA

Value

log(x/(1-x))

Author(s)

Julian Faraway

See Also

ilogit

Examples

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


faraway documentation built on Aug. 23, 2022, 5:08 p.m.

Related to logit in faraway...