Page 1 of 1

"Turn-of-the-year effect" using seasonal dummies

Posted: Wed Feb 24, 2021 1:39 am
by Aksel
Hello,

I am currently working on a study to examine seasonal effects, particularly "turn-of-the-year-effect" at stock markets. The structure of the workfile is daily irregular, so all the observations that are not trading days are excluded. What I am trying to do is to code the dummy variables in a way, that during trading days from -1 to 3, it takes the value 1 and otherwise 0. So, the trading day window takes place at the last trading on December to the third trading day on January every year. Can somebody please help me how to generate that kind of dummy variable in EViews.

Looking forward to receive an answer.

Best regards,
Aksel

Re: "Turn-of-the-year effect" using seasonal dummies

Posted: Wed Feb 24, 2021 8:42 am
by EViews Gareth
Something like:

Code: Select all

series dum = (@month=12 and @month(1)=1) or (@month=1 and @month(-1)=12) or (@month=1 and @month(-2)=12) or (@month=1 and @month(-3)=12)

Re: "Turn-of-the-year effect" using seasonal dummies

Posted: Thu Feb 25, 2021 1:03 am
by Aksel
Yes! Thank you very much. That code works perfectly.