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.
I thank you all in advance for the help.
Yours sincerely,
Afonso Rodrigues
Dummy variables for each holiday day?
Moderators: EViews Gareth, EViews Moderator
-
- EViews Developer
- Posts: 560
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Dummy variables for each holiday day?
Hello,
I can recommend some commands for creating the dummies. For the annual holidays,
For the one-time holidays,
For the annual holidays with a gap,
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?
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.
Who is online
Users browsing this forum: Google [Bot] and 20 guests