Page 1 of 1

Omitting a specific week from equation estimation

Posted: Thu Jun 17, 2021 9:01 am
by BT454
Hi all!
I need to omit a specific week from an equation estimation (I am working in weekly data). I would like to use the same code as I do for my quarterly equations (example would be including the variable dummy2020q1 to omit the first quarter of 2021). Is it possible to do the same for weekly data? I have tried using the date associated with the week (6/11/2021), and the week number (2021w4), and the program crashes.
Is there away to do this?
Thanks!
Bob

Re: Omitting a specific week from equation estimation

Posted: Thu Jun 17, 2021 9:24 am
by EViews Gareth
Weeks are denoted by the date of the first day of the week. Once you know the date you want to exclude, something like:

Code: Select all

smpl if @date<>@dateval("myear-mymonth-myday", "YYYY-MM-DD")

Re: Omitting a specific week from equation estimation

Posted: Thu Jun 17, 2021 9:51 am
by BT454
Thank you sir!