Calculate isolate-isolate co-location overlap
Source:R/cluster_overlap.R
isolate_isolate_overlap.RdFor every ordered pair of isolates, counts the days on which the two patients were in the same
place in trace_mat, within the window from the donor's previous surveillance date up to the
recipient's collection date. This is the concurrent (spatiotemporal) overlap; for indirect
overlap via a shared location at different times, see isolate_isolate_sequential_overlap().
Arguments
- isolate_lookup
A lookup table for isolates and their cluster assignments with other relevant epidemiological information. See
get_isolate_lookup().- trace_mat
A patient-by-date matrix of location occupancy (patients in rows, dates in columns); a positive value marks a patient's location on a given day.