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
Omitting a specific week from equation estimation
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Omitting a specific week from equation estimation
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
Re: Omitting a specific week from equation estimation
Thank you sir!
Who is online
Users browsing this forum: Google [Bot] and 13 guests