rmvnorm: Simulate from multivariate normal distribution.

Description Usage Arguments Details Value

View source: R/dmutate.R

Description

Simulate from multivariate normal distribution.

Usage

1
2
3
4
5
6
7
rmvnorm(n, mu, Sigma)

rlmvnorm(n, ...)

rmassnorm(n, ...)

rlmassnorm(n, ...)

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.

Value

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


kylebmetrum/dmutate documentation built on May 20, 2019, 7:30 p.m.