Description Usage Arguments Value Examples
test whether two cases are within the same transmission cluster
1 2 3 4 5 6 7 8 9 10 11 12 | withinCluster(
N,
k_cutoff,
t1,
t2,
lambda,
beta,
perc_cutoff,
maxN = 25,
N_resist = 0,
lambda_resist = 0
)
|
N |
SNP distance |
k_cutoff |
number of transmissions below this threshold considered to be in same cluster |
t1 |
date of first sample |
t2 |
date of second sample |
lambda |
clock rate |
beta |
transmission rate |
perc_cutoff |
cut-off percentage |
maxN |
for optimisation, SNP distance greater than this considered not in same cluster |
N_resist |
number of resistance-conferring SNPs as a subset of N |
lambda_resist |
clock rate for resistance-conferring SNPs |
TRUE if within cluster, FALSE otherwise
1 | isWithinCluster <- WithinCluster(N=5, k_cutoff=3, t1=2012.13, t2=2015.76, lambda=0.7, beta=1.3, perc_cutoff=0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.