Added randga function

This commit is contained in:
Waldir Leoncio 2019-12-17 15:34:59 +01:00
parent 6014483d1c
commit d77ec891c5
4 changed files with 82 additions and 48 deletions

22
man/randga.Rd Normal file
View 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.
}