neighbor: Neighbor Analysis of Partitions

Description Usage Arguments Details Value Author(s) Examples

Description

Calculates the nearest neighbor (least dissimilar cluster) for each item in partition to identify the topology of the partition.

Usage

1

Arguments

x

an object of class ‘pam’ or class ‘partana’

all

a logical switch to control which items are included in the calculation

Details

Each item in a partition has membership in a cluster. The nearest neighbor of an item is the cluster to which the item is least dissimilar, other than the one to which it it belongs. If ‘all’ is TRUE, then every item is included in the analysis. If ‘all’ is FALSE, only ‘misfits’ are included in the calculation. If the first argument is an object of class ‘pam’, then a misfit is an item with a negative silhouette width (see silhouette). If the first argument is an object of class ‘partana’, a misfit is an item with lower mean dissimilarity to another cluster than to the one to which it belongs.

Value

A table with clusters as rows, and neighbors as columns.

Author(s)

David W. Roberts droberts@montana.edu

Examples

1
2
3
4
data(shoshveg)
dis.bc <- dsvdis(shoshveg,'bray')
opt.5 <- optpart(5,dis.bc)
neighbor(opt.5,all=TRUE)

optpart documentation built on March 26, 2020, 6:18 p.m.

Related to neighbor in optpart...