Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


secr (version 5.2.0)

logit: Logit Transformation

Description

Transform real values to the logit scale, and the inverse.

Usage

logit(x)
invlogit(y)

Value

Numeric value on requested scale.

Arguments

x

vector of numeric values in (0,1) (possibly a probability)

y

vector of numeric values

Details

The logit transformation is defined as logit(x)=log(x1x) for x(0,1).

Examples

Run this code
logit(0.5)
invlogit(logit(0.2))

Run the code above in your browser using DataLab