TraceRatio: Trace Ratio

View source: R/auxiliary.R

TraceRatioR Documentation

Trace Ratio

Description

Evaluation of the estimated factors by trace ratios. The value is between 0 and 1; higher values indicate better estimation accuracy.

Usage

TraceRatio(G, Ghat)

Arguments

G

The true factors matrix.

Ghat

The estimated factors matrix.

Value

A numeric value representing the trace ratio, defined as: \mathrm{TR} = \mathrm{tr} ( \mathbf{G}' \widehat{\mathbf{G}} (\widehat{\mathbf{G}}'\widehat{\mathbf{G}})^{-1} \widehat{\mathbf{G}}'\mathbf{G})/\mathrm{tr}(\mathbf{G'G}).

Examples

G <- matrix(rnorm(100 * 2), 100, 2)
Ghat <- G + matrix(rnorm(100 * 2, sd = 0.1), 100, 2)
TraceRatio(G, Ghat)


GrFA documentation built on Dec. 7, 2025, 1:07 a.m.

Related to TraceRatio in GrFA...