Description Usage Arguments Value Examples
View source: R/Sim_Active_Infections.R
Simulate Active Infections
1 2 3 4 5 6 7 8 9 10 11 | Sim_Active_Infections(
dat1 = StandardData,
dat2 = EarlyIntervention,
dat3 = LowerRate,
MU1 = 4,
MU2 = 3.6,
size1 = 1,
size2 = 0.9,
parallel = FALSE,
max_iter = 5
)
|
dat1 |
Standard infection pattern (vector) for black barplot |
dat2 |
Comparison infection pattern (vector) for blue barplot |
dat3 |
Comparison infectin pattern (vector) for red barplot |
MU1 |
expected time (integer) to getting infected for 1st column |
MU2 |
expected time (integer) to getting infected for 2nd column |
size1 |
Dispersion parameter (integer) for negative binomial distribution so that var = MU + MU^2/size (first column) |
size2 |
Dispersion parameter (integer) for negative binomial distribution so that var = MU + MU^2/size (second column) |
parallel |
Option to parallelize simulation replicates |
max_iter |
number if iterations for replicates |
2 x 3 barplots comparing daily active infections for different infection rates and different parameters (MU and size).
1 | Sim_Active_Infections(dat1 = StandardData,dat2 = EarlyIntervention,dat3 = LowerRate,MU1=4,MU2 = 3.6,size1=1,size2=0.9,parallel = FALSE,max_iter=5 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.