I have a hourly data covering the period of 01/jan/2009 to 31/dec/2018, and I want to create dummies for each day of the week, each month and each year.
For the day of the week and month dummies I have conducted the following codes with success:
Code: Select all
genr january=@month=1
Code: Select all
genr monday=@weekday=1
My problem is that I can't do the same thing for years.
Does anyone know how can it be done?
I thank you all in advance.