Description Usage Arguments Value **Note Examples
View source: R/UnivariateRandomNumberGenerator.R
Random observations generator selected from several distributions with user defined mean and variance.
1 2 3 4 5 6 7 8 9 10 11 
n 
scalar. Number of observations to be generated. 
dist 
character string. Select from:

mu 
scalar. Expected value of the desired distribution. 
sigma 
scalar. Standard deviation of the desired distribution. 
par.location 
scalar. Location parameter of the desired distribution. Default 0**. 
par.scale 
scalar. Scale parameter of the desired distribution. Default 1**. 
par.shape 
scalar. Shape parameter of the desired distribution, Default 1. 
dist.par 
vector. Overwrite

rounding.factor 
scalar. positive value that determine the range between two consecutive rounded values. 
A vector x
with n
observations generated following the selected distribution with its parameters.
For "Lognormal", par.location
and par.scale
correspond to the location and scale parameters of the normal
distribution that generales the lognormal. Hence, in this case they are the logmean and
the logsigma parameters
For "Normal2" and "DoubleExp2", par.location
and par.scale
correspond
correspond to the location and scale parameters of the normal and double exponential
that are used to generates their squared forms.
1  getDist(1, "Normal", 0, 1)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.