mv_norm function

Sampling from multivariate normal distribution

Sampling from multivariate normal distribution

mv_norm(n, mu, Sigma)

Arguments

  • n: Number of draws.
  • mu: Mean vector.
  • Sigma: Covariance matrix.

Returns

Random vector of length n.

Details

None.

Examples

mv_norm(1, 0.2, matrix(0.1))
  • Maintainer: Stephen Burgess
  • License: GPL-2 | GPL-3
  • Last published: 2024-04-12

Useful links