get_fourier_seasonality_fit: Generate weekly fluctuations in mortality based on fit...

Description Usage Arguments Value

Description

This function takes fit coefficients for 'sin(.)' and 'cos(.)' from fourier analysis in TMB and returns the fitted estimates of seasonality for each week.

Usage

1

Arguments

fourier_coefs

A matrix with 2 * N rows, where N is the level of harmonics used to fit seasonality. The first of each pair of terms is the coefficient on 'sin(f(x))', and the second is the coeffient on 'cos(f(x))', where 'f(x) = (level) * (yearly harmonic frequency) * (week)'. Each column represents one posterior draw of the same parameter

Value

Matrix with 52 rows (corrected number of weeks in a modeled year) and the same number of columns as 'fourier_coefs', with seasonality fit for each week and draw


njhenry/covidemr documentation built on Feb. 2, 2022, 2:31 a.m.