Learn R Programming

crimelinkage (version 0.0.4)

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
group
crime group
method
the type of linkage for comparing a crime to a set of crimes
  • “average” uses the average bayes factor
  • “single” uses the largest bayes factor (most similar)
  • “complete” uses the smallest bayes factor (least similar)

Value

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