Samples from a Gamma variable

Share:

Description

Samples from a Gamma-distributed variable in mean parametrization

Usage

1
rgam(n,mu,delta)

Arguments

n

number of samples

mu

mean parameter; either a number or a vector of length n

delta

dispersion parameter; a number

Value

n samples

Author(s)

Nicole Kraemer

See Also

pgam, dgam

Examples

1
2
3
4
n=20
mu<-5 
delta<-1
out<-rgam(n,mu,delta)