Description Usage Arguments Value Author(s) References
View source: R/random.correlation.R
Generate a random correlation matrix from specified eigenvalues. If eigenvalues are not specified, they are randomly generated from a uniform [0,10] distribution.
1 | random.correlation(n, ev = runif(n, 0, 10))
|
n |
the number of rows/dimensions of the correlation matrix |
ev |
Eigenvalues. Defaults to sampling from a uniform distribution betwen 0 and 10. |
a correlation matrix, of size nxn
Dustin Fife
https://stat.ethz.ch/pipermail/r-help/2008-February/153708.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.