View source: R/lower.tri.to.corr.mat.R
lower.tri.to.corr.mat | R Documentation |
This function creates full correlation matrix from the vector containing elements below the diagonal.
lower.tri.to.corr.mat(corr.vec = NULL, d)
corr.vec |
A vector of elements below diagonal of correlation matrix. The elements must be ordered starting from first element below diagonal of the first column, then second element below diagonal of the first column and so on. |
d |
Number of column in final correlation matrix. |
corr.mat |
Full correlation matrix |
lower.tri
corr.vec=c(0.16,0.04,0.38,0.14,0.47,0.68)
lower.tri.to.corr.mat(corr.vec,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.