rcorrmatrix {clusterGeneration} | R Documentation |
GENERATE A RANDOM CORRELATION MATRIX BASED ON RANDOM PARTIAL CORRELATIONS
Description
Generate a random correlation matrix based on random partial correlations.
Usage
rcorrmatrix(d, alphad = 1)
Arguments
d |
Dimension of the matrix. |
alphad |
|
Value
A correlation matrix.
Author(s)
Weiliang Qiu weiliang.qiu@gmail.com
Harry Joe harry@stat.ubc.ca
References
Joe, H. (2006) Generating Random Correlation Matrices Based on Partial Correlations. Journal of Multivariate Analysis, 97, 2177–2189.
Examples
rcorrmatrix(3)
rcorrmatrix(5)
rcorrmatrix(5, alphad = 2.5)