css(dist.obj,clusters)
## Computing Sum-of-Squares given Hierarchical Clustering
"css"(dist.obj, hclust.obj=NULL,hclust.FUN=hclust,
hclust.FUN.MoreArgs=list(method="ward"),k=NULL)
dist
or gdist
.hclust
hclust.obj
specified.
DEFAULT: hclust
hclust.FUN
.css
returns a `css' object,
which is a list containing the following components
k |
number of clusters |
wss |
k within-cluster sum-of-squares |
totwss |
total within-cluster sum-of-square |
totbss |
total between-cluster sum-of-square |
tss |
total sum of squares of the data |
dist.obj |
(the input) distance matrix |
clusters |
(the input) cluster membership |
css.hclust
returns a `css.multi' object,
which is a data.frame containing the following columns
k |
number of clusters |
ev |
explained variance given k |
totbss |
total between-cluster sum-of-square |
tss |
total sum of squares of the data |
cmethod |
the clustering method |
dist.obj |
(the input) distance matrix |
k |
(the input) number of clusters |
clusters |
the `hclust' object that is either by input or computed by default |
elbow
for "elbow" plot using `css.multi' object