dnInverseGamma
- inverseGamma 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 <- rinverseGamma(1000,shape=4,rate=4)
# we expect a mean of 1
mean(a)
# create a random variable
x ~ dnInverseGamma(shape=4,rate=1)
x