| TraceRatio | R Documentation |
Evaluation of the estimated factors by trace ratios. The value is between 0 and 1; higher values indicate better estimation accuracy.
TraceRatio(G, Ghat)
G |
The true factors matrix. |
Ghat |
The estimated factors matrix. |
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}).
G <- matrix(rnorm(100 * 2), 100, 2)
Ghat <- G + matrix(rnorm(100 * 2, sd = 0.1), 100, 2)
TraceRatio(G, Ghat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.