A wrapper for MASS::mvrnorm that returns a matrix (rather than a vector) if n = 1. Also,
elements in which the mean vector has missing values.
sample_mvnorm(n, mu, Sigma)
| n | The number of samples required. |
|---|---|
| mu | A vector giving the means of the variables. |
| Sigma | A positive-definite symmetric matrix specifying the covariance matrix of the variables. |
Matrix of samples from the multivariate distribution.