Arguments
x
matrix, where rows are observations and columns are individual dimensions,
to compute and plot the gap statistic (according to a uniform reference distribution).
max
maximum number of clusters to consider, must be at least two. Default
is 10.
B
integer, number of Monte Carlo ("bootstrap") samples. Default is 100.
SE.factor
[When method
contains "SE"] Determining the optimal
number of clusters, Tibshirani et al. proposed the "1 S.E."-rule.
Using an SE.factor f, the "f S.E."-rule is used, more generally.
method
character string indicating how the "optimal" number of clusters,
k^, is computed from the gap statistics (and their standard deviations),
or more generally how the location k^ of the maximum of f[k] should be
determined. Default is "Tibs2001SEmax"
. Possible value are:
plotResults
logical, if TRUE
(default), a graph visualiting the gap statistic will
be plotted. Use FALSE
to omit the plot.