ssq {lazy.mat} | R Documentation |
ssq(A,U,V) = tr( t(A) %*% U %*% A %*% V )
ssq(A, U = NULL, V = NULL)
A |
Input matrix or vector |
U |
Row weight matrix: nrow(A) x nrow(A) |
V |
Column weight matrix: ncol(A) x ncol(A) |
Can be used with a character matrix.
The weighted sum of squares of all the elements of A
ssq(demomat(3,2)) - sum(demomat(3,2)^2)