Library: | distribs |
See also: | pdfln cdfln |
Quantlet: | rndln | |
Description: | generates a vector of pseudo random variables with lognormal distribution. |
Usage: | y = rndln (n, m, mu, sigma) | |
Input: | ||
n | integer, number of rows | |
m | integer, number of columns | |
mu | scalar, parameter of lognormal distribution (mu, sigma) | |
sigma | scalar, parameter of lognormal distribution (mu, sigma) | |
Output: | ||
y | n x m matrix, pseudo random numbers |
library("xplore") library ("distribs") randomize(100) rndln(3,2,3/4,4/3)
Contents of y [1,] 2.2742 0.80214 [2,] 1.8668 7.2279 [3,] 6.5443 2.1315