Allows to combine two or more calendars into one calendar, weighting all the holidays of each of them.
Details
Composite calendars are useful for a series that including data from more than one country/region. They can be used, for example, to create the calendar for the European Union or to create the national calendar for a country, in which regional holidays are celebrated. For example, in Germany public holidays are determined by the federal states. Therefore, Epiphany is celebrated only in Baden-Wurttemberg, Bavaria and in Saxony-Anhalt, while from 1994 Day of Repentance and Prayer is celebrated only in Saxony.
References
More information on calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction
Examples
Belgium <- national_calendar(list(special_day("NEWYEAR"),fixed_day(7,21)))
France <- national_calendar(list(special_day("NEWYEAR"),fixed_day(7,14)))
composite_calendar<- weighted_calendar(list(France,Belgium), weights = c(1,2))