Usage
moGap(x, K.max, B = 100, cluster = c("kmeans", "hclust"), plot = TRUE, dist.method = "euclidean", dist.diag = FALSE, dist.upper = FALSE, dist.p = 2, hcl.method = "complete", hcl.members = NULL, km.iter.max = 10, km.nstart = 10, km.algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"), km.trace = FALSE)
Arguments
K.max
The maximum number of clusters to consider, passed to clusGap
B
The number of bootstrap, passed to clusGap
cluster
A charater string could be either "kmeans" or "hclust" to specify the
clustering algorithm.
plot
Logical; whether return the gap statistic plot.
dist.method
Distance meaurement, passed to function "dist".
dist.diag
Passed to function "dist".
dist.upper
Passed to function "dist".
dist.p
Passed to function "dist".
hcl.method
Hierarchical clustering method, passed to "hclust"
hcl.members
Passed to "hclust"
km.iter.max
Maximum number of iteration in kmeans, passed to "kmeans".
km.nstart
An integer to specify how many random sets should be chosen. passed to "kmeans".
km.algorithm
Kmeans algorithm, passed to "kmeans".
km.trace
See function "kmeans".