Description Usage Arguments Value Examples
Simulate probability of transmission based on frequency
| 1 | simulations(data, runs, lambda, FUN, threshold = NULL, acc = NULL, ...)
 | 
| data | data frame of transmission data | 
| runs | how many simulations to run | 
| lambda | What is the lamda of the zero truncated Poisson to use | 
| FUN | what function to use to simulate the found column pa_sim or betabin_sim unquoted | 
| threshold | - optional to pass to betabinomial simulator | 
| acc | optional to pass to betabinomial simulation | 
| ... | columns to group for simulations. These will get the same bottleneck size within each replication. It should probably only ever be pair_id.(ie each person gets the same bottleneck within a run) | 
a data frame of simulated logit fits to frequency in donor vs. probability of transmission
| 1 2 | simulations(small_trans,10,3.2,pa_sim)
simulations(small_trans,10,3.2,betabin_sim,0.02,accuracy_stringent)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.