Description Usage Arguments Details Value Examples
This function generates crime groups that are useful for making unlinked pairs and for agglomerative linkage.
1 | makeGroups(X, method = 1)
|
X |
crime series data (generated from |
method |
Method=1 (default) forms groups by finding the maximal connected offender subgraph. Method=2 forms groups from the unique group of co-offenders. Method=3 forms from groups from offenderIDs |
Method=1 forms groups by finding the maximal connected offender subgraph. So if two offenders have ever co-offended, then all of their crimes are assigned to the same group. Method=2 forms groups from the unique group of co-offenders. So for two offenders who co-offended, all the co-offending crimes are in one group and any crimes committed individually or with other offenders are assigned to another group. Method=3 forms groups from the offender(s) responsible. So a crime that is committed by multiple people will be assigned to multiple groups.
vector of crime group labels
1 2 3 4 5 | data(crimes)
data(offenders)
seriesData = makeSeriesData(crimedata=crimes,offenderTable=offenders)
groups = makeGroups(seriesData,method=1)
head(groups,10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.