logit | R Documentation |
Logit and inverse logit functions
logit(x)
ilogit(x)
x |
a numeric vector |
For logit
the value is
log(x/(1 - x))
For ilogit
the value is
exp(x)/(1 + exp(x))
p <- seq(.1, .9, by=.10)
l <- logit(p); l
ilogit(l)
ilogit(l) == p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.