logit: Logit function

Description Usage Arguments Value Examples

View source: R/stats.R

Description

The logit, or inverse of the sigmoid (logistic) function.

Usage

1
logit(p)

Arguments

p

Numeric value between 0 and 1, a probability

Value

Numeric values ranging from -Inf to Inf

Examples

1
2
3
4
5
6
logit(0.5)
logit(.01)
logit(1)

p <- seq(1e-04, 0.9999, 1e-04)
plot(x = p, y = logit(p), type = "l")

iamamutt/mejr documentation built on May 18, 2019, 1:27 a.m.