Learn R Programming

eigenmodel (version 1.11)

rmvnorm: Sample from the multivariate normal distribution

Description

Sample from the multivariate normal distribution

Usage

rmvnorm(mu, Sig2)

Arguments

mu

a p x 1 vector

Sig2

a p x p positive definite matrix

Value

a p x 1 vector

Examples

Run this code
# NOT RUN {
rmvnorm( c(0,0,0),diag(rep(3,1)) )   
# }

Run the code above in your browser using DataLab