Library: | distribs |
See also: | ranpois INSPolKhin |
Quantlet: | rndgeom | |
Description: | generates a vector or matrix of pseudo random variables with geometric distribution. |
Usage: | y = rndgeom(n, m, rho) | |
Input: | ||
n | integer, number of rows | |
m | integer, number of columns | |
rho | scalar, parameter of geometric distribution | |
Output: | ||
y | n x m matrix, pseudo random numbers |
library("xplore") library("distribs") randomize(100) rndgeom(3, 2, 0.2)
Contents of y [1,] 14 1 [2,] 7 6 [3,] 12 1