logit: logit

View source: R/logit.r

logitR Documentation

logit

Description

simple logit function.

Usage

logit(x)

Arguments

x

numeric vector (e.g. probabilities, 0 < x < 1)

Note

This is really the same as qlogis() but it's nice to be able to just call logit(). Returns Inf when x = 0 or x = 1 and NaN for x < 0 or x > 1.

Author(s)

Nikolai Klibansky

Examples

## Not run: 
x <- 1:20
y <- bamExtras::lgs(x=x)
z <- bamExtras::logit(x=y)
z2 <- stats::qlogis(y)
plot(x,z)
points(x,z2,type="l",col="blue")

## End(Not run)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.