ESA(Y, r, X = NULL, center = F, niter = 3, svd.method = "fast")
c(n, p)
c(n, k)
if any. Default is NULL (no known predictors).
k
is the number of known covariates.fast.svd
function in package corpcor to compute SVD, "propack" is using the propack.svd
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.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.1,>Y <- matrix(rnorm(100), nrow = 10) + 3 * rnorm(10) %*% t(rep(1, 10))
ESA(Y, 1)
Run the code above in your browser using DataLab