help getgroup

Title

getgroup -- Assign cases to groups by proximity to medoids

Syntax

getgroup varname, DISTmat(matrix) IDvar(varname) gen(newvarname)

options

Required
distmat(matname) names the distance matrix

idvar(varname) identifies the variable that links the sort-order of the distance matrix to the sort-order of the data

gen(newvarname) Name of new group variable

Description

getgroup generates a group variable from a medoids variable and a distance matrix.

getgroup operates on a distance matrix and a binary medoids
variable, and generates a group variable assigning each case to its closest medoid.

Remarks

Because the order of the data and the order of the distance matrix
must coincide, the dataset must be sorted by idvar. It is the
user's responsibility that this variable defines the correct order.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. getgroup k4, dist(distances) id(id) gen(k4a)

See Also

getgroup

clpam

clfuzz

calinski

dudahart

discrepancy

SADI