bayesPairs {crimelinkage}R Documentation

Extracts the crimes with the largest probability of being linked.

Description

Extracts the crimes (from crimeClust_bayes) with the largest probability of being linked.

Usage

bayesPairs(p.equal, drop = 0)

bayesProb(prob, drop = 0)

Arguments

p.equal

the posterior probability matrix produced by crimeClust_bayes

drop

only return crimes with a posterior linkage probability that exceeds drop. Set to NA to return all results.

prob

a column (or row) of the posterior probability matrix produced by crimeClust_bayes

Details

This is a helper function to easily extract the crimes with a high probability of being linked from the output of crimeClust_bayes. bayesPairs searches the full posterior probability matrix and bayesProb only searches a particular column (or row).

Value

data.frame of the indices of crimes with estimated posterior probabilities, ordered from largest to smallest

See Also

crimeClust_bayes


[Package crimelinkage version 0.0.4 Index]