Description Usage Arguments Details Examples
Compute the number of transmission links separating two nodes in a transmission tree.
1 | translinks(p1, p2, patID, psource)
|
p1 |
Patient ID 1. |
p2 |
Patient ID 2. |
patID |
Vector of patient IDs. |
psource |
Vector of transmission sources corresponding to |
Returns the number of transmission links separating two patients in the transmission tree. If patients belong to unconnected transmission trees, -1 is returned. Directions of transmission links are disregarded.
1 2 3 4 5 | data(hospitaldata)
# Patients 48 and 58 are 3 links apart
translinks(48,58,hospitaldata$epi[,1],hospitaldata$epi[,5])
# Patients 89 and 58 are in separate transmission chains
translinks(89,58,hospitaldata$epi[,1],hospitaldata$epi[,5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.