linkage: Hierarchical Based Linkage
Description
Groups the Bayes Factors by crime group and calculates the linkage score for
each group.Usage
linkage(BF, group, method = c("average", "single", "complete"))
Arguments
BF
vector of Bayes Factors
method
the type of linkage for comparing a crime to a set of crimes
- averageuses the average bayes factor
- singleuses the largest bayes factor (most similar)
- completeuses the smallest ba
Value
- If
details = FALSE
: a data.frame of the Bayes Factor scores
ordered (highest to lowest).
Details
If methods is a vector of linkages to use, then the all linkages are
calcualted and ordered according to the first element.Examples
Run this code# See vignette: "Crime Series Identification and Clustering" for usage.
Run the code above in your browser using DataLab