Multivariate Normal Distribution.
Random generation for the multivariate normal distribution.
X ~ N_p(μ, Σ)
rmvnorm(n = 1, mu = rep(0, p), sigma = diag(p))
n |
number of samples. |
mu |
mean |
sigma |
covariance matrix. |
a n x p matrix with samples in its rows.
CVarE:::rmvnorm(20, sigma = matrix(c(2, 1, 1, 2), 2)) CVarE:::rmvnorm(20, mu = c(3, -1, 2))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.