Learn R Programming

crimelinkage (version 0.0.4)

clusterPath: 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

Value

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

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.

See Also

crimeClust_hier, plot_hcc

Examples

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

Run the code above in your browser using DataLab