logit | R Documentation |
The logit and invlogit functions, widely used in this package, are wrappers
of qlogis
and plogis
functions.
logit(p)
invlogit(x)
p |
numeric. one value or a vector between 0 and 1. |
x |
numeric. one value or a vector of numerics. |
logit
function is defined for p in (0, 1) by:
logit(p) = log( p/(1-p) )
invlogit
function is defined for x in (-Inf, +Inf) by:
invlogit(x) = exp(x)/(1+exp(x)) = plogis(x)
logit( c(ppoints(11, a = 1), NA, NaN) )
invlogit( c(-Inf, -10:10, +Inf, NA, NaN) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.