Description Usage Arguments Value
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.
1 | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.