Description Usage Arguments Value Examples
Spectral clustering of a covariate matrix (low rank).
1 | specClustCov(covMat, nBlocks, nIter = 20, center = F, jit = F)
|
covMat |
A matrix of covariates with each column corresponding to a covariate. |
nBlocks |
The number of clusters. |
nIter |
Number of kmeans iterations (default is 10). |
center |
A boolean indicating if the covariate matrix columns should be centered. |
Returns a vector of row cluster assignments.
1 2 3 4 | covProbMat = matrix(c(.6, .2, .2, .6), nrow = 2)
nMembers = c(50, 50)
covMat = simBernCovar(covProbMat, nMembers)
specClustCov(covMat, nBlocks = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.