powered by
Multivariate Distributions
dqrmvnorm(n, ...)
numeric matrix of multivariate normal distributed variables
number of observations
forwarded to rmvnorm
rmvnorm
sigma <- matrix(c(4,2,2,3), ncol=2) x <- dqrmvnorm(n=500, mean=c(1,2), sigma=sigma) colMeans(x) var(x) plot(x)
Run the code above in your browser using DataLab