lower.tri.to.corr.mat {BinNor} | 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 |
corr.vec=c(0.16,0.04,0.38,0.14,0.47,0.68)
lower.tri.to.corr.mat(corr.vec,4)