set up a simulation as demonstrated by John C Mallery
demo_simulation(
gt.type = "gamma",
gt.val = c(3, 1.5),
begin = 1,
end = 30,
epid.nb = 1,
epid.length = 30,
family = "poisson",
R0 = 1.67,
peak.value = 500
)
character(1) type
setting for R0:generation.time
numeric() val
setting for R0:generation.time
numeric(1) passed to R0::estimate.R
numeric(1) passed to R0::estimate.R
numeric(1) passed to R0:sim.epid
numeric(1) passed to R0:sim.epid
character(1) passed to R0:sim.epid
numeric(1) passed to R0:sim.epid
numeric(1) passed to R0:sim.epid
result of estimate.R
if (FALSE) {
d1 = demo_simulation()
# plot(d1) ## note: R0:::plot.R0.sR is very peculiar and runs dev.new()
plotfit(d1) # same here but seems to have simpler behavior
# s.a <- sensitivity.analysis(res=d1$estimates$EG, begin=1:15, end=16:30, sa.type="time")
}