tr {lmreg} | R Documentation |
Computes the trace of a given matrix.
tr(M)
M |
A matrix whose trace is to be computed. |
A scalar value, describing the trace of M.
Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>
Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.
tr(matrix(2,2,2))