Description Usage Arguments Value Examples
Each run we will ramdomly choose one of the possible transmission pairs from data with a donor ENROLLID provided in the list and evalute the probability of transmission. Smoothing every 2
1 | com_sample_trans(data, runs, SPECIDs, test = F)
|
data |
data frame on which to sample. contains freq1 and freq2 |
runs |
The number of times to sample |
SPECIDs |
A list of SPECIDs that can be used as donors |
test |
A boolean switch. If activatve returns a list of 2 tibbles. The first is the last sample_data tibble the second is the normal output |
a data frame with columns freq1, trial, and probability of transmission.
1 2 | print(small_community.comp)
com_sample_trans(small_community.comp,2,c("HS1595","MH0000"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.