powered by
Return a DISTRIBUTION object that draw random numbers from a multivariate normal distribution using the mvrnorm function.
DISTRIBUTION
mvrnorm
new_MULTINORMAL(p_mu, p_sigma, p_dimnames, tol = 1e-06, empirical = FALSE)
An object of class DISTRIBUTION, MULTINORMAL
MULTINORMAL
a vector of means
a positive-definite symmetric matrix for the covariance matrix
A character that represents the name of the dimension
tolerance (relative to largest variance) for numerical lack of positive-definiteness in p_sigma.
logical. If true, mu and Sigma specify the empirical not population mean and covariance matrix.
John J. Aponte
msigma <- matrix(c(1,0,0,1), ncol=2) d1 <- new_MULTINORMAL(c(0,1), msigma) rfunc(d1, 10)
Run the code above in your browser using DataLab