\HeaderA{agnes.object}{Agglomerative Nesting (AGNES) Object}{agnes.object}
\keyword{cluster}{agnes.object}
\begin{Description}\relax
The objects of class \code{"agnes"}
represent an agglomerative hierarchical clustering of a dataset.
\end{Description}
\begin{Value}
A legitimate \code{agnes} object is a list with the following components:
\begin{ldescription}
\item[\code{order}] a vector giving a permutation of the original observations to allow
for plotting, in the sense that the branches of a clustering tree
will not cross.
\item[\code{order.lab}] a vector similar to \code{order}, but containing observation labels
instead of observation numbers. This component is only available if
the original observations were labelled.

\item[\code{height}] a vector with the distances between merging clusters at the successive
stages.

\item[\code{ac}] the agglomerative coefficient, measuring the clustering structure of the
dataset.

For each observation i, denote by m(i) its dissimilarity to the
first cluster it is merged with, divided by the dissimilarity of the
merger in the final step of the algorithm.  The \code{ac} is the
average of all 1 - m(i). It can also be seen as the average width
(or the percentage filled) of the banner plot.  Because \code{ac}
grows with the number of observations, this measure should not
be used to compare datasets of very different sizes.

\item[\code{merge}] an (n-1) by 2 matrix, where n is the number of observations.  Row i
of \code{merge} describes the merging of clusters at step i of the
clustering.  If a number j in the row is negative, then the single
observation |j| is merged at this stage.  If j is positive, then the
merger is with the cluster formed at stage j of the algorithm.

\item[\code{diss}] an object of class \code{"dissimilarity"} (see
\code{\LinkA{dissimilarity.object}{dissimilarity.object}}), representing the total
dissimilarity matrix of the dataset.

\item[\code{data}] a matrix containing the original or standardized measurements, depending
on the \code{stand} option of the function \code{agnes}. If a
dissimilarity matrix was given as input structure, then this
component is not available.

\end{ldescription}
\end{Value}
\begin{Section}{GENERATION}
This class of objects is returned from \code{\LinkA{agnes}{agnes}}.
\end{Section}
\begin{Section}{METHODS}
The \code{"agnes"} class has methods for the following generic functions:
\code{print}, \code{summary}, \code{plot}.
\end{Section}
\begin{Section}{INHERITANCE}
The class \code{"agnes"} inherits from \code{"twins"}.
Therefore, the generic functions \code{\LinkA{pltree}{pltree}} and
\code{\LinkA{as.hclust}{as.hclust}} are available for \code{agnes} objects.
After applying \code{as.hclust()}, all \emph{its} methods are
available, of course.
\end{Section}
\begin{SeeAlso}\relax
\code{\LinkA{agnes}{agnes}}, \code{\LinkA{diana}{diana}},
\code{\LinkA{as.hclust}{as.hclust}}, \code{\LinkA{hclust}{hclust}},
\code{\LinkA{plot.agnes}{plot.agnes}}, \code{\LinkA{twins.object}{twins.object}}.
\end{SeeAlso}

