Added randga function
This commit is contained in:
parent
6014483d1c
commit
d77ec891c5
4 changed files with 82 additions and 48 deletions
22
man/randga.Rd
Normal file
22
man/randga.Rd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/randga.R
|
||||
\name{randga}
|
||||
\alias{randga}
|
||||
\title{Generates random number from a Gamma distribution}
|
||||
\usage{
|
||||
randga(a, b)
|
||||
}
|
||||
\arguments{
|
||||
\item{a}{shape}
|
||||
|
||||
\item{b}{rate}
|
||||
}
|
||||
\value{
|
||||
One realization of Gamma(a, b)
|
||||
}
|
||||
\description{
|
||||
Generates one random number from shape parameter a and rate parameter b
|
||||
}
|
||||
\details{
|
||||
The generated random variable has mean a / b. It will be positively-skewed for small values, but converges to a symmetric distribution for very large numbers of a and b.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue