| Logistic {base} | R Documentation |
The Logistic Distribution
Description
These functions provide information about the logistic distribution
with parameters location and scale. dlogis gives
the density, plogis gives the distribution function
qlogis gives the quantile function and rlogis generates
random deviates.
The Logistic distribution with location a and
scale b has density
f(x) =
\frac{1}{b} \frac{e^{(x-a)/b}}{(1 + e^{(x-a)/b})^2}
Usage
dlogis(x, location, scale=1)
plogis(q, location, scale=1)
qlogis(p, location, scale=1)
rlogis(n, location, scale=1)
Examples
x <- 0:4
paste(dlogis(x, loc = 0)) == paste(exp(x) * (1 + exp(x))^-2)