Learn R Programming

CopulaRegression (version 0.1-5)

rgam: Samples from a Gamma variable

Description

Samples from a Gamma-distributed variable in mean parametrization

Usage

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

See Also

pgam, dgam

Examples

Run this code
n=20
mu<-5 
delta<-1
out<-rgam(n,mu,delta)

Run the code above in your browser using DataLab