Page 1 of 1

sample and equation data

Posted: Wed Jun 17, 2020 8:45 am
by superjocker
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

Re: sample and equation data

Posted: Wed Jun 17, 2020 8:51 am
by EViews Gareth
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

Re: sample and equation data

Posted: Wed Jun 17, 2020 9:14 am
by superjocker
Oh ok, thank you for your response.