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