Random number generation for inverse gamma distribution
Simulates from a inverse gamma (a, b) distribution with density proportional to $y^(-a-1) exp(-b/y)$
rigamma(n, a, b)
n |
number of random numbers to be generated |
a |
inverse gamma shape parameter |
b |
inverse gamma rate parameter |
vector of n simulated draws
Jim Albert
a=10 b=5 n=20 rigamma(n,a,b)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.