Learn R Programming

BTSPAS (version 2024.5.9)

logit: Logit and anti-logit function.

Description

Compute the logit or anti-logit.

Usage

logit(p)

expit(theta)

Value

Computed logit or anti-logit

Arguments

p

probability between 0 and 1.

theta

logit between -infinity and +infinity

Author

C.J.Schwarz cschwarz@stat.sfu.ca

Examples

Run this code

##---- compute the logit and its inverse
logitp <- logit(.3)
p <- expit(-.84)

Run the code above in your browser using DataLab