specClustCov: Spectral clustering of a covariate matrix (low rank).

Description Usage Arguments Value Examples

Description

Spectral clustering of a covariate matrix (low rank).

Usage

1
specClustCov(covMat, nBlocks, nIter = 20, center = F, jit = F)

Arguments

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.

Value

Returns a vector of row cluster assignments.

Examples

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)

norbertbin/SpecClustPack documentation built on May 23, 2019, 9:32 p.m.