gclus (version 1.3.2)

ac: Clustering coefficients from package cluster.

Description

Computes clustering coefficients from cluster, where x and y give the object coordinates.

Usage

ac(x, y, ...)
sil(x, y, groups, ...)

Arguments

x

is a numeric vector.

y

is a numeric vector.

groups

is a vector of group memberships, used by sil only.

are passed to agnes in ac and to dist in sil.

Value

The clustering coefficient is returned.

Details

ac - Computes clustering coefficient from agnes{cluster}.

sil - Computes the silhouette coefficient from from package cluster.

References

Kaufman, L. and Rousseeuw, P.J. (1990). Finding Groups in Data: An Introduction to Cluster Analysis . Wiley, New York.

See Also

agnes, silhouette, dist.

Examples

Run this code
# NOT RUN {
x <- runif(20)
y <- runif(20)
g <- rep(c("a","b"),10)

ac(x,y)
sil(x,y,g)
# }

Run the code above in your browser using DataCamp Workspace