File: rigamma.Rd

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
\name{rigamma}
\alias{rigamma}
\title{Random number generation for inverse gamma distribution}
\description{
 Simulates from a inverse gamma (a, b) distribution with density 
proportional to $y^(-a-1) exp(-b/y)$
}
\usage{
rigamma(n, a, b)
}
\arguments{
  \item{n}{number of random numbers to be generated}
  \item{a}{inverse gamma shape parameter}
  \item{b}{inverse gamma rate parameter}
}
\value{
vector of n simulated draws
}

\author{Jim Albert}

\examples{
a=10
b=5
n=20
rigamma(n,a,b)
}

\keyword{models}