Learn R Programming

semidist (version 0.1.0)

tr_estimate: Estimate the trace of the covariance matrix and its square

Description

For a design matrix \(\mathbf{X}\), estimate the trace of its covariance matrix \(\Sigma = \mathrm{cov}(\mathbf{X})\), and the square of covariance matrix \(\Sigma^2\).

Usage

tr_estimate(X)

Value

A list with elements:

  • tr_S: estimate for trace of \(\Sigma\);

  • tr_S2: estimate for trace of \(\Sigma^2\).

Arguments

X

The design matrix.