maxmatrix: Largest Element in Correlation Matrix

View source: R/sca.R

maxmatrixR Documentation

Largest Element in Correlation Matrix

Description

return position and value of the largest element of a correlation matrix R (without taking into account the diagonal elements)

Usage

maxmatrix(R)

Arguments

R

a square symmetric numeric matrix

Value

a list with components

row

row index of maximum

col

col index of maximum

val

value of maximum, i.e. val == R[row,col].

See Also

sca, also for references

Examples

data(reflexesC)
maxmatrix(reflexesC) # ->  0.98 at  [1, 2]

sca documentation built on Jan. 14, 2023, 5:07 p.m.

Related to maxmatrix in sca...