Description Usage Arguments Details Value Examples
Hardly worth coding, if it didn't appear in so many formulae in psychometrics, the trace of a (square) matrix is just the sum of the diagonal elements.
1 | tr(m)
|
m |
A square matrix |
The tr function is used in various matrix operations and is the sum of the diagonal elements of a matrix.
The sum of the diagonal elements of a square matrix.
i.e. tr(m) <- sum(diag(m)).
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.