clusterPath {crimelinkage}R Documentation

Follows path of one crime up a dendrogram

Description

The sequence of groups that a crime belongs to.

Usage

clusterPath(crimeID, tree)

Arguments

crimeID

the crime ID for a crime used in hierarchical clustering

tree

an object produced from crimeClust_hier

Details

Agglomerative hierarchical clustering form clusters by sequentially merging the most similar groups at each iteration. This function is designed to help trace the sequence of groups an individual crime is a member of. And it shows at what score (log Bayes factor) the merging occurred.

Value

data.frame of the additional crimes and the log Bayes factor at each merge.

See Also

crimeClust_hier, plot_hcc

Examples

# See vignette: "Crime Series Identification and Clustering" for usage.

[Package crimelinkage version 0.0.4 Index]