Learn R Programming

ddtlcm (version 0.2.1)

logit: The logistic function

Description

The logit function: f(x) = log(x / (1/x)). Large absolute values of x will be truncated to +/- 5 after logit transformation according to its sign.

Usage

logit(x)

Value

a number or real-valued vector

Arguments

x

a value or a numeric vector between 0 and 1 (exclusive)

Examples

Run this code
logit(0.2)
logit(c(0.2, 0.6, 0.95))

Run the code above in your browser using DataLab