powered by
Multivariate Random observations generator selected from several distributions with user defined mean and variance.
mgetDist( n, nv, mu = 0, sigma = NULL, correlation = 0, s = NULL, dists = NULL, dists.par = NULL )
scalar. Number of observations to be generated.
scalar. Number of variables to be generated.
scalar. Expected value of the desired distribution.
scalar. Standard deviation of the desired distribution.
scalar. Corralation between variables.
matrix. Correlation matrix of the variables
list. Select the
matrix For each variable (column), specify
par.location: Location parameter of the desired distribution. Default 0.
par.location
par.scale: Scale parameter of the desired distribution. Default 1.
par.scale
par.shape: Shape parameter of the desired distribution, Default 1.
par.shape
The number of columns must be the same as the number of variables.
A matrix x with n observations generated following the selected distribution with its parameters.
x
n
# NOT RUN { mgetDist(n=5, nv=2, dists=c("Normal", "Normal"),dists.par= matrix(c(0,1,1,0,1,1), ncol=2)) # }
Run the code above in your browser using DataLab