Learn R Programming

rv (version 0.949)

rvgamma: Generate Random Variables from a Gamma Sampling Model

Description

Generates random variables from a Gamma sampling model.

Usage

rvgamma(n=1, shape, rate = 1, scale = 1/rate)

Arguments

n
integer: number of variables to generate
shape
shape parameter, may be a rv
rate
rate parameter, may be a rv
scale
inverse of rate, may be specified optionally instead of rate

Value

  • A random vector (rv object).

Details

rvgamma

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

Run this code
#

Run the code above in your browser using DataLab