Description Usage Arguments Value Author(s) Examples
Simulates from a inverse gamma (a, b) distribution with density proportional to $y^(-a-1) exp(-b/y)$
1 | 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
1 2 3 4 | a=10
b=5
n=20
rigamma(n,a,b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.