Description Usage Arguments Value Author(s) See Also Examples
This function aggregates the all simulated waiting time distributions into a single probability density for each district. The method uses simple linear pooling to get the weighted linear average of all waiting time probabilities (sometimes referred to as the 'linear opinion pool').
1 |
x |
a three-dimensional array containing waiting time distributions for all districts and simulations |
a matrix (rows = districts, cols = epidemic generation)
John Giles
Other simulation:
calc.hpd()
,
calc.prop.inf()
,
calc.prop.remain()
,
calc.timing.magnitude()
,
decay.func()
,
get.age.beta()
,
get.beta.params()
,
sim.TSIR.full()
,
sim.TSIR()
,
sim.combine.dual()
,
sim.combine()
,
sim.gravity.duration()
,
sim.gravity()
,
sim.lambda()
,
sim.pi()
,
sim.rho()
,
sim.tau()
1 2 3 4 5 6 7 8 9 10 | load("./output/TSIR_sim_flu_high.Rdata")
x1 <- sim$B$wait.time
x2 <- sim$R$wait.time
agg1 <- calc.wait.time(x1)
agg2 <- calc.wait.time(x2)
plot(agg1[1,], type='l', col='blue', cex=2)
lines(agg2[1,], col='red', cex=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.