Contains call to MacroPCA()
robustpca(object, number_eigenvectors, KMAX = 20, verbose_robustpca = FALSE)list with as the first element the robust factors and as the second element the robust factor loadings
input
number of eigenvectors to extract
The maximal number of principal components to compute. This is a parameter in cellWise::MacroPCA()
when TRUE, it prints messages: used for testing (requires Matrix-package when set to TRUE)
Notes:
Different values for kmax give different factors, but the product lambdafactor stays constant. Note that this number needs to be big enough, otherwise eigen() will be used. Variation in k does give different results for lambdafactor
MacroPCA() crashes with specific values of dim(object). For example when dim(object) = c(193,27). This is solved with evade_crashes_macropca(), for those problematic dimensions that are already encountered during tests.