fixed_day | R Documentation |
creates a holiday falling on a fixed day each year, with an optional weight and period of validity, like Christmas which is always celebrated on December 25th.
fixed_day(month, day, weight = 1, validity = NULL)
month , day |
the month and the day of the fixed day to add. |
weight |
weight associated to the holiday. |
validity |
validity period: either |
returns an object of class c("JD3_FIXEDDAY","JD3_HOLIDAY")
More information on calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction
national_calendar
, special_day
,easter_day
day <- fixed_day(7, 21, .9)
day # July 21st, with weight=0.9, on the whole sample
day <- fixed_day(12, 25, .5, validity = list(start = "2010-01-01"))
day # December 25th, with weight=0.5, from January 2010
day <- fixed_day(12, 25, .5, validity = list(start = "1968-02-01", end = "2010-01-01"))
day # December 25th, with weight=0.9, from February 1968 until January 2010
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.