Learn R Programming

dqrng (version 0.4.0)

dqrmvnorm: Multivariate Distributions

Description

Multivariate Distributions

Usage

dqrmvnorm(n, ...)

Value

numeric matrix of multivariate normal distributed variables

Arguments

n

number of observations

...

forwarded to rmvnorm

See Also

Examples

Run this code
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