mvrnorm | R Documentation |
Sampler derived using the eigendecomposition of the covariance
matrix Sigma
. The function uses the Armadillo random normal generator
mvrnorm(n, mu, Sigma)
n |
sample size |
mu |
mean vector. Will set the dimension |
Sigma |
a square covariance matrix, of same dimension as |
an n
sample from a multivariate Normal distribution
mvrnorm(n=10, mu=c(0,2), Sigma=diag(2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.