Dummy variables for each holiday day?

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

AfonsoRod
Posts: 43
Joined: Wed May 31, 2017 7:37 am

Dummy variables for each holiday day?

Postby AfonsoRod » Tue Feb 26, 2019 9:59 am

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 3229 times


I thank you all in advance for the help.

Yours sincerely,
Afonso Rodrigues

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: Dummy variables for each holiday day?

Postby EViews Matt » Tue Feb 26, 2019 10:28 am

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)

AfonsoRod
Posts: 43
Joined: Wed May 31, 2017 7:37 am

Re: Dummy variables for each holiday day?

Postby AfonsoRod » Tue Feb 26, 2019 10:30 am

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.


Return to “Estimation”

Who is online

Users browsing this forum: Google [Bot] and 20 guests