Learn R Programming

CopulaRegression (version 0.1-5)

dgam: Density of a Gamma variable

Description

Density of a Gamma-distributed variable in mean parametrization

Usage

dgam(y,mu,delta)

Arguments

y
vector of length n
mu
mean parameter; either a number or a vector of length n
delta
dispersion parameter; a number

Value

See Also

pgam

Examples

Run this code
y<-0:10
mu<-5 
delta<-1
out<-dgam(y,mu,delta)
# out equals
out1<-dgamma(y,shape=1/delta,rate=1/(delta*mu))

Run the code above in your browser using DataLab