Skip to contents

Calculates the inverse logit

Usage

invlogit(x)

Arguments

x

Vector of numbers

Value

x mapped to [0, 1]

Details

Maps the real line to [0, 1]

Author

Jared P. Lander

Examples

invlogit(3)
#> [1] 0.9525741
invlogit(-6:6)
#>  [1] 0.002472623 0.006692851 0.017986210 0.047425873 0.119202922 0.268941421
#>  [7] 0.500000000 0.731058579 0.880797078 0.952574127 0.982013790 0.993307149
#> [13] 0.997527377
invlogit(c(-1, 1, 2))
#> [1] 0.2689414 0.7310586 0.8807971