Learn R Programming

sharp (version 1.4.6)

SparseKMeansClustering: Sparse K means clustering

Description

Runs sparse K means clustering using implementation from KMeansSparseCluster. This function is not using stability.

Usage

SparseKMeansClustering(xdata, nc = NULL, Lambda, ...)

Value

A list with:

comembership

an array of binary and symmetric co-membership matrices.

weights

a matrix of median weights by feature.

Arguments

xdata

data matrix with observations as rows and variables as columns.

nc

matrix of parameters controlling the number of clusters in the underlying algorithm specified in implementation. If nc is not provided, it is set to seq(1, tau*nrow(xdata)).

Lambda

vector of penalty parameters (see argument wbounds in KMeansSparseCluster).

...

additional parameters passed to KMeansSparseCluster.

References

SparseClusteringsharp