Page 1 of 1

Dummy variables for each holiday day?

Posted: Tue Feb 26, 2019 9:59 am
by AfonsoRod
Dear all,

I have an hourly data-set from 01-Jan-2009 to 31-12-2018 (10 years) for Portugal. I need to create a dummy for each holiday day. Do I have to create a dummy for each day, or is there any simpler way to do that?

In the below image you can see every holiday days that were in Portugal from 2009 to 2018.

holidays.jpg
holidays.jpg (164.73 KiB) Viewed 680 times


I thank you all in advance for the help.

Yours sincerely,
Afonso Rodrigues

Re: Dummy variables for each holiday day?

Posted: Tue Feb 26, 2019 10:28 am
by EViews Matt
Hello,

I can recommend some commands for creating the dummies. For the annual holidays,

Code: Select all

series holiday1 = @holiday("jan1") > 0

For the one-time holidays,

Code: Select all

series holiday2 = @event("2016mar25") > 0

For the annual holidays with a gap,

Code: Select all

series holiday3 = @holiday("oct5") and (@year <= 2012 or @year >= 2016)

Re: Dummy variables for each holiday day?

Posted: Tue Feb 26, 2019 10:30 am
by AfonsoRod
EViews Matt wrote:Hello,

I can recommend some commands for creating the dummies. For the annual holidays,

Code: Select all

series holiday1 = @holiday("jan1") > 0

For the one-time holidays,

Code: Select all

series holiday2 = @event("2016mar25") > 0

For the annual holidays with a gap,

Code: Select all

series holiday3 = @holiday("oct5") and (@year <= 2012 or @year >= 2016)


Dear Eviews Matt

Thank you very much for the help.