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)

Value

a p x 1 vector

Arguments

mu

a p x 1 vector

Sig2

a p x p positive definite matrix

Author

Peter Hoff

Examples

Run this code
rmvnorm( c(0,0,0),diag(rep(3,1)) )   

Run the code above in your browser using DataLab