clusterRange: Cluster Range

Description Usage Arguments Value

View source: R/cluster.r

Description

This function generate an cluster structure with 'k' groups and computes the cluster reliability score where 'k' is a range of values

Usage

1
2
3
4
5
6
7
8
clusterRange(
  dis,
  range = c(2, 100),
  step = 1,
  cores = 1,
  method = c("pam", "kmeans"),
  data = NULL
)

Arguments

dis

Distance object

range

vector with start and end 'k'

step

Integer indicating the incremental number of clusters to add in each iteration

cores

Maximum number of CPU cores to use

method

Either 'pam' k-mediods or kmeans. Must supply the original data matrix if using kmeans

data

Original data matrix

Value

list of cluster reliability scores by 'k', 'clustering' (the vector solution) and 'reliability' as well as 'medoids' labels


MOMA documentation built on Nov. 8, 2020, 6:01 p.m.