Rdocumentation
powered by
Learn R Programming
crimelinkage (version 0.0.3)
compareTemporal: Make temporal evidence variable from (possibly uncertain) temporal info
Description
Calculates the temporal distance between crimes
Usage
compareTemporal(DT1, DT2, niters = 2000, show.pb = TRUE)
Arguments
DT1
(n x 2) data.frame of (DT.FROM,DT.TO) for the crimes
DT2
(n x 2) data.frame of (DT.FROM,DT.TO) for the crimes
niters
number of iterations for Monte Carlo expectation
show.pb
(logical) show the progress bar
Value
data.frame of expected absolute differences:
temporal - overall difference (in days) [0,max]
tod - time of day difference (in hours) [0,12]
dow - fractional day of week difference (in days) [0,3.5]
Details
Uses Monte Carlo expected value - aoristic like analysis