powered by
gamma_dist
Method for sampling from a gamma_dist object.
# S3 method for gamma_dist sampler(x, ...)
A function that generates n samples from the gamma distribution
n
The gamma_dist object to sample from
Additional arguments (not used)
x <- gamma_dist(shape = 2, rate = 1) s <- sampler(x) set.seed(42) s(5)
Run the code above in your browser using DataLab