Generates random variables from a Gamma sampling model.
rvgamma(n = 1, shape, rate = 1, scale = 1/rate)
integer: number of variables to generate
shape parameter, may be a rv
rate parameter, may be a rv
inverse of rate, may be specified optionally instead of rate
A random vector (rv object).
rvngamma(n, shape, rate)
is equivalent to rvgamma(n, 1/3 +
shape, rate)
.
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv")
.