| rmvnorm_prec | R Documentation |
This function provides a random number generator for
the multivariate normal distribution with mean equal
to mu and sparse precision matrix prec.
rmvnorm_prec(prec, n = 1, mu = rep(0, nrow(prec)))
prec |
sparse precision (inverse-covariance) matrix. |
n |
number of observations. |
mu |
mean vector. |
a matrix with dimension length(mu) by
n, containing realized draws from the specified
mean and precision
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.