Calculate multiplicative beta scaling factor due to seasonality.

spim_beta_mult_seasonality(dates, date_peak, value)

Arguments

dates

A sircovid date, fractional dates (e.g. 100.25) are allowed.

date_peak

Date of peak as a sircovid::sircovid_date value (a single number)

value

Size of the peak to annual average difference. A value of 0.1 will produce multiplicative values that range from 0.9 to 1.1.

Value

A vector the same length as dates with the scaling factor.