data.gen.norm | R Documentation |
Generate correlated normal variates
data.gen.norm(n, mu = rep(0, 2), sd = rep(1, 2), r = 0.6, sigma)
n |
The data length to be generated. |
mu |
A vector giving the means of the variables. |
sd |
A vector giving the standard deviation of the variables. |
r |
The target Pearson correlation, default is 0.6. |
sigma |
A positive-definite symmetric matrix specifying the covariance matrix of the variables. |
A matrix of correlated normal variates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.