rmnorm: Random multivariate normal distribution.

Description Usage Arguments Value References Examples

Description

This function returns a set of uncorrelated variables following a normal distribution.

Usage

1
rmnorm(covmat, means = 0, sds = NULL, n)

Arguments

covmat

Covariance matrix to be decomposed.

means

A vector of means. If 0 data are centred. Otherwise, its size must be equal in length to the number of variables in covmat.

sds

Optional vector of standard deviations. Must also have length equal to the number of variables in covmat.

n

Number of observations.

Value

A matrix.

References

Fan, X. and Fan, X. Using SAS for Monte Carlo Simulation Research in SEM. 2005. Structural Equation Modeling 12(2): 299-333.

Examples

1
2
3
4
5

stremo documentation built on Jan. 15, 2017, 7:33 p.m.