expit: Perform the Inverse-Logit Tranformation

Description Usage Arguments Details Value See Also Examples

View source: R/expit.R

Description

Performs the inverse-logit transformation. See the details below for exactly what this means.

Usage

1
expit(x)

Arguments

x

A numeric vector with length >= 1 containing the number in logit space to convert to the [0,1] scale.

Details

The inverse logit tranformation turns any real number (negative to positive infinity) to a number on the [0,1] scale (e.g., the probability scale). I can never remember which transformation the built-in qlogis or plogis functions do, so I wrote my own that are more explicit in their names.

Value

A numeric vector with the same length as x containing the inverse-logit of x.

See Also

logit

Examples

1
2
3
expit(x = 1)
expit(x = 0.5)
expit(x = logit(x = 0.5))

bstaton1/StatonMisc documentation built on May 18, 2020, 12:06 a.m.