logit: Logit transform.

Description Usage Arguments Details Author(s) See Also Examples

View source: R/logit.R

Description

Apply the standard logit transform to a numeric vector of values.

Usage

1
logit(x)

Arguments

x

A numeric vector.

Details

The logit function simply applies the standard logit transform to the provided numeric vector x: log(x / (1 - x)).

Author(s)

Leigh Ann Starcevich and Jason Mitchell of Western EcoSystems Technology, Inc.

See Also

TrendNPS::expit

Examples

1
2
3
4
5
x <- c(0.3,0.2,0.9)
y <- logit(x)

y
# -0.8472979 -1.3862944  2.1972246

LAStarcevich/TrendNPS documentation built on May 21, 2019, 9:19 a.m.