Description Usage Arguments Details Value Author(s) References See Also Examples
Generates a random correlation matrix with the method of Marsaglia and Olkin (1984).
1 | rcorr(d)
|
d |
an integer > 0, the order of the correlation matrix. |
The algorithm uses rsphere
to generate d
vectors on a sphere in d-space. If Z
is a matrix with such vectors as rows, then the random
correlation matrix is ZZ'.
a correlation matrix of order d
.
Giovanni M. Marchetti
Marshall, G.\& Olkin, I. (1984).Generating correlation matrices. SIAM J. Sci. Stat. Comput., 5, 2, 470–475.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.