Description Usage Arguments Value Examples
View source: R/Sim_Daily_Hospitalizations.R
Simulate Daily Hospitalizations
1 2 3 4 5 6 7 8 9 10 11 | Sim_Daily_Hospitalizations(
MU1 = 4,
MU2 = 3.6,
dat1 = StandardData,
dat2 = EarlyIntervention,
dat3 = LowerRate,
size1 = 1,
size2 = 0.9,
parallel = FALSE,
max_iter = 5
)
|
MU1 |
expected time (integer) to getting infected for 1st column |
MU2 |
expected time (integer) to getting infected for 2nd column |
dat1 |
Standard infection pattern (vector) for black barplot |
dat2 |
Comparison infection pattern (vector) for blue barplot |
dat3 |
Comparison infectin pattern (vector) for red barplot |
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 use parallel processing for running multiple functions w different parameters. Default is False. |
max_iter |
number if iterations for replicates |
2 x 3 barplots comparing daily hospitalizations for different infectino rates and different parameters (MU and size).
1 | Sim_Daily_Hospitalizations = function(MU1=4,MU2 = 3.6,dat1 = StandardData,dat2 = EarlyIntervention,dat3 = LowerRate,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.