logit: The logistic function

View source: R/utils.R

logitR Documentation

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)

Arguments

x

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

Value

a number or real-valued vector

Examples

logit(0.2)
logit(c(0.2, 0.6, 0.95))

ddtlcm documentation built on May 29, 2024, 5:41 a.m.