frobenius | R Documentation |
Calculates a modified version of the Frobenius matrix norm for a square symmetric matrix with p(p + 1) / 2 estimable parameters.
frobenius(datamat, targetmat)
datamat |
Symmetric square matrix for which to calculate the Frobenius norm. |
targetmat |
Target matrix of same size as |
This is a utility function used by alpha.crossvalid
, but can also be called directly if required. This version of the Frobenius matrix norm gives equal weight to all parameters (variances and covariances) when used with covariance matrices.
Returns the modified Frobenius matrix norm (scalar).
Theo Pepler
Pepler, P.T. (2014). The identification and application of common principal components. PhD dissertation in the Department of Statistics and Actuarial Science, Stellenbosch University.
alpha.crossvalid
# Compare the covariance matrix of the versicolor group to # an identity matrix data(iris) versicolor <- iris[51:100, 1:4] frobenius(datamat = cov(versicolor), targetmat = diag(4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.