logit: Logit Transformation

View source: R/logit-antilogit.R

logitR Documentation

Logit Transformation

Description

Calculates the logit transformation of a probability (p), defined as log(p/(1-p)). The logit function is the inverse of the logistic function.

Usage

logit(x)

Arguments

x

Numeric value or vector of probabilities between 0 and 1

Value

The logit-transformed value(s)

Examples

logit(0.5)  # Returns 0
logit(0.75) # Returns ~1.099


ccamp83/mu documentation built on Nov. 7, 2024, 5:17 p.m.