Hi, sorry to bother, my question is: I just defined a sample "smpl 12/31/2018 12/31/2019 if @weekday=5" meaning just the fifth day of every week for the year 2019. Then I create a formula "series rent_x=(x-x(-1))/x(-1)" but it doesnt calculate using the sample just defined. so the answer to rent_x is daily, not weekly. My raw data is daily and the formula is using my raw data to generate the results and not my sample data defined. Is there a way to fix this?, I could use "series rent_x=(x-x(-7))/x(-7)" but I need the formula to use the sample that I created because will need to change the sample many times to calculate different rent_x.
Thanks
sample and equation data
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: sample and equation data
Lags are always defined by workfile structure, not sample.
If you want to use (-1) to refer to the previous week you need to actually remove those other observations from the workfile
If you want to use (-1) to refer to the previous week you need to actually remove those other observations from the workfile
Follow us on Twitter @IHSEViews
-
- Posts: 27
- Joined: Mon Mar 30, 2020 5:45 pm
Re: sample and equation data
Oh ok, thank you for your response.
Who is online
Users browsing this forum: No registered users and 41 guests