dist_weibull {distributional} | R Documentation |
The Weibull distribution
Description
Generalization of the gamma distribution. Often used in survival and time-to-event analyses.
Usage
dist_weibull(shape, scale)
Arguments
shape , scale |
shape and scale parameters, the latter defaulting to 1. |
Details
We recommend reading this documentation on https://pkg.mitchelloharawild.com/distributional/, where the math will render nicely.
In the following, let be a Weibull random variable with
success probability
p
= .
Support: and zero.
Mean: , where
is
the gamma function.
Variance:
Probability density function (p.d.f):
Cumulative distribution function (c.d.f):
Moment generating function (m.g.f):
See Also
Examples
dist <- dist_weibull(shape = c(0.5, 1, 1.5, 5), scale = rep(1, 4))
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]