Topm {shipunov} | R Documentation |
Stacks correlation matrix
Description
Stacks (correlation) matrix and selects values which are above the “level”
Usage
Topm(X, level=0.45, values=0, corr=TRUE, square=TRUE)
Arguments
X |
Data frame or matrix with values |
level |
Threshold |
values |
If > 0, ignores "level" and outputs until reaches number, if "all", outputs all values |
corr |
If FALSE, does not show magnitude |
square |
If FALSE, does not use lower triangle, some rows could be redundant |
Details
'Topm()' stacks (correlation) matrix and selects (and sorts) values which are above the “level”.
Good for the analysis of correlation matrices.
Value
Data frame with correlation values
Author(s)
Alexey Shipunov
See Also
Examples
Topm(cor(trees), corr=TRUE)
[Package shipunov version 1.17.1 Index]