Description Usage Arguments Value
View source: R/utils_parameters.R
Make a piecewise linear interpolating vector of Rt, for each
day within the simulated interval. The assumed start of simulation
is the first date provided in dates, and the end of simulation is the last
date of dates unless max_date is provided. Interpolation is done with
inclusive endpoints.
1 | interpolate_rt(dates, rt, max_date = NULL)
|
dates |
a vector of Dates |
rt |
a vector of reproductive values at those dates |
max_date |
the maximum date of simulation (optional) |
a list with named elements Rt and Rt_tt, which can be provided
to the safir::get_parameters function's arguments R0 and tt_R0.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.