Skip to contents

Function to generate a global weekly R(t) estimate with added noise

Usage

get_global_rt(r_in_weeks, n_weeks, global_rt_sd, zero_padding = 1e-08)

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.

Value

a weekly R(t) estimate with added noise