dnGamma
- Gamma Distribution
shape : | RealPos (pass by const reference) |
The shape parameter. | |
rate : | RealPos (pass by const reference) |
The rate parameter (rate = 1/scale). |
# lets simulate
a <- rgamma(1000,shape=4,rate=4)
# we expect a mean of 1
mean(a)
# create a random variable
x ~ dnGamma(shape=4,rate=1)
x