Internal function for a specific application
Creates a dummy moving holiday variable for the weekly number of initial registrations at the Employment Service in Israel.
my_rosh(dates, holiday.dates, start = -11, end = 12)
dates
: a vector of class "Date", containing the data datesholiday.dates
: a vector of class "Date", containing the occurrences of the holiday. It can be generated with as.Date().start
: -11 for rosh, 3 for pesachend
: 12 for rosh, -1 for pesachrosh holiday variable
# Creating moving holiday dummy variable for Israeli Rosh Hashanah data(gasoline.data) data(holiday_dates_il) # dates of Israeli Rosh Hashanah and Pesach movehol=my_rosh(gasoline.data$date,holiday.dates = holiday_dates_il$rosh)