assessBsFun: Assess the performance of group-sparse loading estimate

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/hello.R

Description

Evaluate the model selection consistency rate (SCR), F-measure and the smallest canonical correlation.

Usage

1
  assessBFun(hB, B0)

Arguments

hB

a p-by-q matrix, the estimated loading matrix.

B0

a p-by-q matrix, the true loading matrix.

Value

return a vecotor with three compoents whose names are scr,fmea, ccorB.

Note

nothing

Author(s)

Liu Wei

See Also

ccorFun.

Examples

1
2
3
4
5
6
  dat <- gendata(n = 300, p = 500)
  res <- gsspFactorm(dat$X)
  assessBsFun(res$sphB, dat$B0)
  n <- nrow(dat$X)
  res <- gsspFactorm(dat$X, lambda1=0.05*n^(1/4), lambda2=9*n^(1/4))
  assessBsFun(res$sphB, dat$B0)

feiyoung/SpagFainfer documentation built on April 4, 2020, 5:20 p.m.