Learn R Programming

crimelinkage (version 0.0.3)

seriesID: Crime series identification

Description

Performs crime series identification by finding the crime series that are most closely related (as measured by Bayes Factor) to an unsolved crime.

Usage

seriesID(crime, solved, seriesData, varnames, estimateBF,
  linkage.method = c("average", "single", "complete"), group.method = 3,
  ...)

Arguments

crime
crime incident; vector of crime variables
solved
incident data for the solved crimes
seriesData
table of crimeIDs and crimeseries (results from makeSeriesData)
varnames
the variable names necessary for getting evidence variables
estimateBF
function to estimate the bayes factor from evidence variables
linkage.method
the type of linkage for comparing one crime to a set of crimes
  • averageuses the average bayes factor
  • singleuses the largest bayes factor (most similar)
  • completeuses the smallest
group.method
the type of crime groups to form (see makeGroups for details)
...
other arguments passed to compareCrimes

Value

  • A list with two objects. score is a data.frame of the similarity scores for each element in solved. groups is the data.frame seriesData with an additional column indicating the crime group (using the method specified in group.method).

References

Porter, M. D. (2014). A Statistical Approach to Crime Linkage. arXiv preprint arXiv:1410.2285.. http://arxiv.org/abs/1410.2285

Examples

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

Run the code above in your browser using DataLab