Learn R Programming

rpf (version 0.28)

logit: Transform from [0,1] to the reals

Description

The logit function is a standard transformation from [0,1] (such as a probability) to the real number line.

Usage

logit(prob)

Arguments

prob
a number between 0 and 1

Examples

Run this code
logit(.5)  # 0
logit(.25) # -1.098
logit(0)   # -Inf

Run the code above in your browser using DataLab