Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logit

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

Functions and Datasets for Books by Julian Faraway

v1.0.7
GPL
Authors
Julian Faraway <jjf23@bath.ac.uk>
Initial release
2016-02-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.