Construct a gamma distribution object.
Arguments
- shape
Shape parameter (positive scalar)
- rate
Rate parameter (positive scalar)
Value
A gamma_dist object
Examples
x <- gamma_dist(shape = 2, rate = 1)
mean(x)
#> [1] 2
vcov(x)
#> [1] 2
format(x)
#> [1] "Gamma distribution (shape = 2, rate = 1)"