Function to generate a global weekly R(t) estimate with added noise
Source:R/model_component_fwd_sim.R
get_global_rt.Rd
Function to generate a global weekly R(t) estimate with added noise
Arguments
- r_in_weeks
The mean R(t) for each week of the simulation in natural scale, can be longer than the n_weeks
- n_weeks
The number of weeks that we want to simulate the data for
- global_rt_sd
The variation in the R(t) estimate to add intrinsic variability to the infection dynamics
- zero_padding
Numeric value to replace any negative R(t) values with.