powered by
Fast simulation from multivariate Gaussian probability distribution.
rmvnormal(n, mu, sigma)
An integer giving the number of observations to be simulated.
integer
A numeric vector of dimension \(p\) giving the means of normal distribution.
numeric
A variance-covariance matrix of dimension \(p\) times \(p\).
matrix
Returns a \(n\) by \(p\) matrix of observations from a multivariate normal distribution with the given mean mu and covariance
mu
The rmvnormal function is copied from the GMCM-package. It is similar to rmvnorm from the mvtnorm-package.
rmvnormal
GMCM
rmvnorm
mvtnorm
# NOT RUN { rmvnormal(n = 10, mu = 1:4, sigma = diag(4)) # }
Run the code above in your browser using DataLab