Can we include the regressors in seasonal, with an example
Conclusion
Replication is possible. Adding the regressors to seasonal may be useful.
suppressPackageStartupMessages(library(tidyverse))
library(tsbox)
library(seasonal)
#>
#> Attaching package: 'seasonal'
#> The following object is masked from 'package:tibble':
#>
#> view
td1nolpyear
Include the weekday-weekend contrast variable (monthly and quarterly flow
eries only): (no. of weekdays) −(5/2) (no. of Saturdays and Sundays).
tdnolpyear
Include the six day-of-week contrast variables (monthly and quarterly flow
series only): (no. of Mondays) − (no. of Sundays), . . . , (no. of Saturdays) −
(no. of Sundays).
‘Trading day adjustment’ removes the effect of the weekdays, and but does not
include holidays, such as Christmas or Easter. These are handled separately
(Easter) or dealt with by standard seasonal adjustment (Christmas).
Key Questions
Conclusion
Replication is possible. Adding the regressors to seasonal may be useful.
Examples
Constructing weekday regressors
Include the weekday-weekend contrast variable (monthly and quarterly flow eries only): (no. of weekdays) −(5/2) (no. of Saturdays and Sundays).
Include the six day-of-week contrast variables (monthly and quarterly flow series only): (no. of Mondays) − (no. of Sundays), . . . , (no. of Saturdays) − (no. of Sundays).
‘Trading day adjustment’ removes the effect of the weekdays, and but does not include holidays, such as Christmas or Easter. These are handled separately (Easter) or dealt with by standard seasonal adjustment (Christmas).
Single coef
All coefs
Created on 2019-12-28 by the reprex package (v0.3.0)