This package returns country specific holidays in an easy manner. Currently the package comprises holidays for Germany only. However, some events -- such as Christmas days -- are also valid for many other countries. Please ask questions and report bugs on the gretl mailing list if possible. Alternatively, open an issue ticket on my github repo. Source code and test script(s) can be found here: https://github.com/atecon/holidays The package comprises four public functions. First, the user calls the holiday() function for obtaining a bundle of various binary series named according to a specific holiday. Second, the get_list_of_holidays() function is a convenience function, and appends the list of series from the previously returned bundle to the current data set. You may specify a string array for retrieving only specific holiday series. Third, the print_names_of_holidays() function simply prints all holidays in the compiled bundle. Fourth, the get_names_of_holidays() function returns a string array including the names of holidays compiled. Note: The package works with both time-series and panel datasets with periodicity 7. In case your active time-series data set has a 5 days periodicity, you may join the 7 days time-series to it. PUBLIC FUNCTIONS: ----------------------------------------------------------------------- Function: holidays() Arguments: country_name (string, e.g. 'de') Output: bundle Return: Bundle comprising a binary time-series for each holiday. The binary series takes the value of one if the specific holiday occurs at a certain date, otherwise zero. ----------------------------------------------------------------------- ----------------------------------------------------------------------- Function: get_list_of_holidays() Arguments: B (bundle returned by holidays() function) hd (string array of holiday series to return, optional) Output: list Return: This convenience function appends all series of holidays in the bundle returned by the holidays() function to the active time-series data set. If one wants to retrieve only specific holidays, these can be defined by the optional string array 'hd'. ----------------------------------------------------------------------- ----------------------------------------------------------------------- Function: get_names_of_holidays() Arguments: B (bundle returned by holidays() function) Output: string array Return: This convenience function returns a string array holding all names of holidays compiled after having called holidays() function. ----------------------------------------------------------------------- ----------------------------------------------------------------------- Function: print_names_of_holidays() Arguments: B (bundle returned by holidays() function) Output: none Return: This convenience function print the unique names of holidays compiled after having called holidays() function. ----------------------------------------------------------------------- ================ Adding holidays ================ Currently the package provides holidays only for Germany. If you would like to add holiday information for other countries that would be great! These are the steps to be done in case you want to add holidays for a new country: 1) Add a two-letter country flag to the 'countries' string array in function countries_supported(). 2) Add the corresponding case to the get_holidays() function. 3) Copy the days_with_fixed_date_de() function, name your new function days_with_fixed_date_() and define your set of holidays accordingly. 4) Copy the days_related_to_eastern_de function, name your new function days_related_to_eastern_() and define your set of holidays accordingly. I recommend you to fork the source code from the github repo (https://github.com/atecon/holidays) and to send a pull request to me. However, if you are not familiar with the versioning tool git, you may contact me via email: Changelog: - v0.3, April 2021: + remove unnecessary second argument from the get_list_of_holidays() - v0.2, March 2021: + add support for panel dataset + minimum gretl version is 2020c instead of 2020a - v0.1, May 2020: + initial release