##################################################################################################
##################################################################################################
##################################################################################################
####################                                                          ####################
####################                                                          ####################
#################### Swiss calendar and regressors : files publicly available ####################
####################                                                          ####################
####################                                                          ####################
##################################################################################################
##################################################################################################
##################################################################################################

A detailed description of the files available is given in the following methodological report (written in french):
"Effets du calendrier suisse en usage à l'OFS en 2023. Méthodes d'ajustement et choix des régresseurs."

The report can be downloaded at :
https://www.bfs.admin.ch/bfs/fr/home/services/recherche/rapports-methodologiques.html




The .zip file which contains this readme file consists on the following files :

- SwissCalendar.dat : a text file containing the "swiss calendar". This file is given for information and is not required to use softwares like X13-ARIMA-SEATS.
The file is described in the methodological report, in section 2.3. It can be used to build the "regressor files" (see below). 

- SwissRegressors1980_2029_option0.dat, SwissRegressors1980_2029_option1.dat, ..., SwissRegressors1980_2029_option4.dat : text files containing the regressors computed on the time period jan 1980 -- dec 2029 for different possible model choices (option).
The files are described in the methodological report, in section 3.4. They can be used as an input with softwares like X13-ARIMA-SEATS to deal with monthly time series. 
An example of use is given in the methodological report in section 5 and annex A. In particular, the R software with the package 'seasonal' allow to use X13-ARIMA-SEATS.

- SwissRegressors1980_2029_trim_option0.dat, SwissRegressors1980_2029_trim_option01dat, ..., SwissRegressors1980_2029_trim_option4.dat : text files similar to SwissRegressors1980_2029_option0.dat, etc.
These files can be used to deal with quarterly time series -- instead of monthly time series.




In addition to these .dat files, users have the possibility to use directly some R code which generates the calendar / the regressors on an arbitrary time period. The R files available are : 

- BuildSwissCalendar.R : contains some functions in R langage which enable to generate the file SwissCalendar.dat.

- BuildRegressors.R    : contains some functions in R langage which enable to generate the files with the regressors. This file also contains a function which runs a statistical test enabling to compare the different options (see, section 4.3 in the methodological report).

- CalendarAdjustment.R : contains an example of use of BuildSwissCalendar.R and BuildRegressors.R. 