Omitting a specific week from equation estimation

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Omitting a specific week from equation estimation

Postby BT454 » Thu Jun 17, 2021 9:01 am

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

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

Re: Omitting a specific week from equation estimation

Postby EViews Gareth » Thu Jun 17, 2021 9:24 am

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")
Follow us on Twitter @IHSEViews

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Re: Omitting a specific week from equation estimation

Postby BT454 » Thu Jun 17, 2021 9:51 am

Thank you sir!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 23 guests