EsaBcv(Y, X = NULL, r.limit = 20, niter = 3, nRepeat = 12, only.r = F,
svd.method = "fast", center = F)
c(n, p)
c(n, k)
if any. Default is NULL (no known predictors).
k
is the number of known covariates.nRepeat
times. Default is 12.fast.svd
function in package corpcor to compute SVD, "propack" is using the propack.svd
EsaBcv
returns an obejct of class
"esabcv"
The function plot
plots the cross-validation results and points out the
number of factors estimated
An object of class "esabcv" is a list containing the following components:p
c(n, r)
r
c(p, r)
c(k, p)
.
Return NULL if the argument X
is NULL.p
. It's an estimate of $\mu$. Return
NULL if the argument center
is False.c(nRepeat, (max.r + 1))
storing
the detailed BCV entrywise MSE of each repeat for r from 0 to max.r
X
is given or centering the data is required (which is essentially
adding a known covariate with all $1$), for identifiability, it's required that
$n - k
(or n - k - 1
if centering is required) samples to
estimate the latent factors. The rotation idea first appears in Sun et.al. (2012).1,>Yunting Sun, Nancy R. Zhang and Art B. Owen, Multiple hypothesis testing adjusted for latent variables, with an application to the AGEMAP gene expression data. The Annuals of Applied Statistics, 6(4): 1664-1688, 2012
ESA
, plot.esabcv
Y <- matrix(rnorm(100), nrow = 10)
EsaBcv(Y)
Run the code above in your browser using DataLab