powered by
Evaluate the smallest cononical correlation (ccor) coefficients or trace statistic between two matrices, where a larger ccor or trace statistic is better.
measurefun(hH, H, type=c('trace_statistic','ccor'))
return a real number.
a n-by-q matrix, the estimated matrix.
n
q
a n-by-q matrix, the true matrix.
a character taking value within c('trace_statistic','ccor'), default as 'trace_statistic'.
c('trace_statistic','ccor')
Liu Wei
dat <- gendata(n = 100, p = 200, q=2, rho=3) res <- Factorm(dat$XList[[1]]) measurefun(res$hB, dat$B0)
Run the code above in your browser using DataLab