rmvnorm | R Documentation |
Simulate from a multiviate normal distribution
rmvnorm(n, mu=NULL, sigma=NULL)
n |
Number of vectors to simulate |
mu |
mean vector |
sigma |
covariance matrix, assumed symmetric and nonnegative definite |
This function uses an eigen
decomposition assuming sigma
is symmetric.
In particular, the upper triangle of sigma
is ignored.
An n x d matrix in which each row is an independently generated realization from the desired multivariate normal distribution
eigen
, dnorm
, dmvnorm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.