Page 1 of 1

Dummy variable for summer

Posted: Tue May 21, 2019 11:01 am
by AfonsoRod
Dear all

I would like to know how can we include a dummy for all the summer months at once, since I can only do it for each year separately. For that I have used the following command:

Code: Select all

summer=@date>@dateval("21/06/2009") and @date<@dateval("20/09/2009")


With that I can have a dummy to mark the summer days for the year of 2009. My question is if there is a way to do this for all the years in a single dummy,

I thank you all in advance.

Yours sincerely,
Afonso Rodrigues

Re: Dummy variable for summer

Posted: Tue May 21, 2019 11:10 am
by EViews Gareth

Code: Select all

@holiday("Jun21 Sep20")>0

Re: Dummy variable for summer

Posted: Tue May 21, 2019 11:13 am
by AfonsoRod
EViews Gareth wrote:

Code: Select all

@holiday("Jun21 Sep20")>0


Thank you very much, Eviews Gareth

Yours sincerely,
Afonso Rodrigues