Description Usage Arguments Value References Examples
This function returns a set of uncorrelated variables following a normal distribution.
1 |
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 |
sds |
Optional vector of standard deviations. Must also have length equal
to the number of variables in |
n |
Number of observations. |
A matrix.
Fan, X. and Fan, X. Using SAS for Monte Carlo Simulation Research in SEM. 2005. Structural Equation Modeling 12(2): 299-333.
1 2 3 4 5 | data(latta)
mat <- rmnorm(latta.greenhouse.cov, n = 1000)
mat
latta.greenhouse.cov
cov(mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.