Dummy variable for summer

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: 32
Joined: Wed May 31, 2017 7:37 am

Dummy variable for summer

Postby AfonsoRod » Tue May 21, 2019 11:01 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12199
Joined: Tue Sep 16, 2008 5:38 pm

Re: Dummy variable for summer

Postby EViews Gareth » Tue May 21, 2019 11:10 am

Code: Select all

@holiday("Jun21 Sep20")>0
Follow us on Twitter @IHSEViews

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

Re: Dummy variable for summer

Postby AfonsoRod » Tue May 21, 2019 11:13 am

EViews Gareth wrote:

Code: Select all

@holiday("Jun21 Sep20")>0


Thank you very much, Eviews Gareth

Yours sincerely,
Afonso Rodrigues


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 1 guest