cov_pca | R Documentation |
Perform PCA on data and return list of candidate covariance matrices
cov_pca(data, npc, subset = NULL)
data |
a mash data object |
npc |
the number of PCs to use |
subset |
indices of the subset of data to use (set to NULL for all data) |
Returns a list of covariance matrices: the npc rank-one
covariance matrices based on the first npc PCs, and the rank npc
covariance matrix. If flashier did not identify any factors,
NULL
is returned.
data = mash_set_data(Bhat = cbind(c(1,2),c(3,4)), Shat = cbind(c(1,1),c(1,1)))
cov_pca(data,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.