Skip to contents

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 of delay_opts() and the examples below for details. This must be the result of a call to delay_opts(); anything else is rejected with an error.

generation_time

A call to gt_opts() (or its alias generation_time_opts()) defining the generation time distribution used. This must be the result of a call to gt_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 to rt_opts(). To generate new infections using the non-mechanistic model instead of the renewal equation model, use rt = NULL. The non-mechanistic model internally uses the setting rt = rt_opts(use_rt = FALSE, future = "project", gp_on = "R0").

Value

An integer seeding time