rvgamma {rv}R Documentation

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

Details

rvgamma

Value

A random vector (rv object).

Author(s)

Jouni Kerman jouni@kerman.com

References

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").

Examples

  #

[Package rv version 1.0 Index]