model_error: Model error

Description Usage Arguments Value References

View source: R/model_error.R

Description

Given a positive definite covariance matrix Σ, this function calculates the model error between two matrices U and V according to the formula

Trace [ (U-V)' Σ' Σ (U-V) ]/(mn),

where m, n are the dimensions of U (V). If no covariance matrix is specified, the function calculates the model error using the identity covariance matrix, which is equivalent the normalized squared matrix error).

Usage

1
model_error(U, V, Sigma = NULL)

Arguments

U

matrix (m-by-n)

V

matrix (m-by-n)

Sigma

positive definite covariance matrix (m-by-m)

Value

The model error between U and V given Sigma.

References

\insertRef

MRCEtsmvr


spcorum/tsmvrdata documentation built on May 6, 2019, 11:17 a.m.