logit: Logit and inverse logit functions

Description Usage Arguments Value Examples

Description

Logit and inverse logit functions

Usage

1
2
3
logit(x)

ilogit(x)

Arguments

x

a numeric vector

Value

For logit the value is

log(x/(1 - x))

For ilogit the value is

exp(x)/(1 + exp(x))

Examples

1
2
3
4
p <- seq(.1, .9, by=.10)
l <- logit(p); l
ilogit(l)
ilogit(l) == p


Search within the mosaic package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.