A continuous distribution on the real line. For binary outcomes
the model given by cdf()
is called logistic regression.
Logistic(location = 0, scale = 1)
A Logistic
object.
The location parameter for the distribution. For Logistic distributions, the location parameter is the mean, median and also mode. Defaults to zero.
The scale parameter for the distribution. Defaults to one.
We recommend reading this documentation on https://alexpghayes.github.io/distributions3/, where the math will render with additional detail and much greater clarity.
In the following, let location
= scale
=
Support:
Mean:
Variance:
Probability density function (p.d.f):
Cumulative distribution function (c.d.f):
Moment generating function (m.g.f):
where
set.seed(27)
X <- Logistic(2, 4)
X
random(X, 10)
pdf(X, 2)
log_pdf(X, 2)
cdf(X, 4)
quantile(X, 0.7)
Run the code above in your browser using DataLab