Learn R Programming

dmutate (version 0.2.0)

rmvnorm: Simulate from multivariate normal distribution

Description

Simulate from multivariate normal distribution

Usage

rmvnorm(n, mu, Sigma)

rlmvnorm(n, ...)

rmassnorm(n, ...)

rlmassnorm(n, ...)

Value

Returns a matrix of variates with number of rows equal to n and number of columns equal to length of mu.

Arguments

n

number of variates.

mu

vector of means.

Sigma

variance-covariance matrix with number of columns equal to length of mu.

...

arguments passed to rmvnorm.

Details

rlmvnorm is a multivariate log normal.

rmassnorm and rlmassnorm simulate the multivariate normal using the MASS package.