logit | R Documentation |
simple logit function.
logit(x)
x |
numeric vector (e.g. probabilities, 0 < x < 1) |
This is really the same as qlogis()
but it's nice to be able to just call logit()
.
Returns Inf when x = 0 or x = 1 and NaN for x < 0 or x > 1.
Nikolai Klibansky
## Not run:
x <- 1:20
y <- bamExtras::lgs(x=x)
z <- bamExtras::logit(x=y)
z2 <- stats::qlogis(y)
plot(x,z)
points(x,z2,type="l",col="blue")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.