R/ms.pca.R

ms.pca <-
function(X,corXresid,threshold,top){
  covX = fastcov(X)
    diag(corXresid) = 0
    whichbig = grep(T, corXresid > threshold)
    covX[whichbig] = median(covX)
    myeigen = eigen(covX)
    output = list(eigenvector = myeigen$vectors[, 1:top], eigenvalue = myeigen$values[1:top])
    return(output)
 }

Try the PCFAM package in your browser

Any scripts or data that you put into this service are public.

PCFAM documentation built on May 2, 2019, 2:37 a.m.