Description Usage Arguments Value Examples
Generates a random draw from a Wishart distribution with a specified degrees of freedom (nu) and then standarizes it to obtain a correlation matrix. The degrees of freedom must be equal to or greater than the number of variables. Larger degrees of freedom shrink the correlations towards the diagonal. When nu = p the correlations are entirely random.
1 | rcorr(p, nu = 1)
|
p |
number of variables |
nu |
the degrees of freedom of the wishart distribution |
a matrix
1 | rcorr(10, 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.