logit: Logit and anti-logit function.

View source: R/logit.R

logitR Documentation

Logit and anti-logit function.

Description

Compute the logit or anti-logit.

Usage

logit(p)

expit(theta)

Arguments

p

probability between 0 and 1.

theta

logit between -infinity and +infinity

Value

Computed logit or anti-logit

Author(s)

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

Examples


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


BTSPAS documentation built on May 29, 2024, 4:06 a.m.