Description Usage Arguments Value
This function takes fit coefficients for 'sin(.)' and 'cos(.)' from fourier analysis in TMB and returns the fitted estimates of seasonality for each week.
1 | get_fourier_seasonality_fit(fourier_coefs)
|
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.