Skip to contents

Computes the inverse logit transformation.

Usage

expit(x)

Arguments

x

A numeric input.

Value

Value between 0 and 1.

Examples

expit(0)         # returns 0.5
#> [1] 0.5
expit(c(-2, 0, 2))
#> [1] 0.1192029 0.5000000 0.8807971