sample and equation data

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

superjocker
Posts: 27
Joined: Mon Mar 30, 2020 5:45 pm

sample and equation data

Postby superjocker » Wed Jun 17, 2020 8:45 am

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

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

Re: sample and equation data

Postby EViews Gareth » Wed Jun 17, 2020 8:51 am

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

superjocker
Posts: 27
Joined: Mon Mar 30, 2020 5:45 pm

Re: sample and equation data

Postby superjocker » Wed Jun 17, 2020 9:14 am

Oh ok, thank you for your response.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 41 guests