Description Usage Arguments Details Value Examples
Simulate one draw from a multivariate normal distribution
1 | draw_normal(mu, Sigma_inv)
|
mu |
A numeric vector, the mean of the distribution. |
Sigma_inv |
A numeric matrix, the precision matrix (inverse of the of the variance-covariance matrix) of the distribution |
Uses the Cholesky decomposition of Sigma_inv.
A column vector containing the draw.
1 2 | M <- matrix(c(1, 0.5, 0.5, 1), 2, 2)
draw_normal(c(0, 0), solve(M))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.