Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tr

Trace of a matrix


Description

This function computes the trace of a matrix.

Usage

tr(M)

Arguments

M

square matrix

Value

The trace of the matrix M.

Author(s)

Nicole Kraemer

Examples

M<-matrix(rnorm(8*8),ncol=8)
tr.M<-tr(M)

plsdof

Degrees of Freedom and Statistical Inference for Partial Least Squares Regression

v0.3-0
GPL (>= 2)
Authors
Nicole Kraemer, Mikio L. Braun
Initial release
2021-03-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.