cor_to_upper {simdata} | R Documentation |
Convert correlation matrix to specification used by
cor_from_upper
Description
Convert correlation matrix to specification used by
cor_from_upper
Usage
cor_to_upper(m, remove_below = .Machine$double.eps)
Arguments
m |
Symmetric correlation matrix. |
remove_below |
Threshold for absolute correlation values below which they are removed from the returned matrix. If NULL then no filtering is applied. |
Value
Matrix with 3 columns (variable_1, variable_2, correlation), where correlation gives the entry at position (variable_1, variable_2) of the input correlation matrix. Note that variable_1 < variable_2 holds for all entries.
See Also
[Package simdata version 0.4.0 Index]