The seeding time is set to the mean of the specified delays, constrained to be at least the maximum generation time
Usage
get_seeding_time(delays, generation_time, rt = rt_opts())Arguments
- delays
A call to
delay_opts()defining delay distributions and options. See the documentation ofdelay_opts()and the examples below for details. This must be the result of a call todelay_opts(); anything else is rejected with an error.- generation_time
A call to
gt_opts()(or its aliasgeneration_time_opts()) defining the generation time distribution used. This must be the result of a call togt_opts(); passing anything else, such as a bare<dist_spec>, is rejected with an error before model fitting starts.- rt
A list of options as generated by
rt_opts()defining Rt estimation. Defaults tort_opts(). To generate new infections using the non-mechanistic model instead of the renewal equation model, usert = NULL. The non-mechanistic model internally uses the settingrt = rt_opts(use_rt = FALSE, future = "project", gp_on = "R0").
