tr {lmreg} | R Documentation |
Trace of matrix
Description
Computes the trace of a given matrix.
Usage
tr(M)
Arguments
M |
A matrix whose trace is to be computed. |
Value
A scalar value, describing the trace of M.
Author(s)
Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>
References
Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.
Examples
tr(matrix(2,2,2))
[Package lmreg version 1.2 Index]