Library: | distribs |
See also: | pdfgamma cdfgamma |
Quantlet: | rndgamma | |
Description: | generates a vector of pseudo random variables with gamma distribution. |
Usage: | r = rndgamma (n, m, a, b) | |
Input: | ||
n | integer, number of rows | |
m | integer, number of columns | |
a | scalar, parameter of gamma distribution | |
b | scalar, parameter of gamma distribution | |
Output: | ||
r | n x m matrix, pseudo random numbers |
library("xplore") library("distribs") randomize(100) rndgamma(3,2,3,2)
[1,] 2.1295 1.8151 [2,] 0.55632 2.1624 [3,] 1.4051 1.9588