dist_logistic {distributional} | R Documentation |
The Logistic distribution
Description
A continuous distribution on the real line. For binary outcomes
the model given by where
is the Logistic
cdf()
is called logistic regression.
Usage
dist_logistic(location, scale)
Arguments
location , scale |
location and scale parameters. |
Details
We recommend reading this documentation on https://pkg.mitchelloharawild.com/distributional/, where the math will render nicely.
In the following, let be a Logistic random variable with
location
= and
scale
= .
Support: , the set of all real numbers
Mean:
Variance:
Probability density function (p.d.f):
Cumulative distribution function (c.d.f):
Moment generating function (m.g.f):
where is the Beta function.
See Also
Examples
dist <- dist_logistic(location = c(5,9,9,6,2), scale = c(2,3,4,2,1))
dist
mean(dist)
variance(dist)
skewness(dist)
kurtosis(dist)
generate(dist, 10)
density(dist, 2)
density(dist, 2, log = TRUE)
cdf(dist, 4)
quantile(dist, 0.7)
[Package distributional version 0.4.0 Index]