I can't seem to figure out how to change the workfile range to the date of the last observation of a series. For example,
pagestruct(end=@now)
But instead of @now which gives todays date, I want the date of the last observation of a series "xyz"
Any ideas?
Thanks
Date of last observation
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13309
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Date of last observation
Code: Select all
%end = xyz.@last
pagestruct(end={%end})
Follow us on Twitter @IHSEViews
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Date of last observation
Thanks Gareth!
-
- Posts: 10
- Joined: Wed Oct 03, 2018 8:58 am
Re: Date of last observation
How could I create a "start" date using a similar method by referencing the date 24 months prior to the last observation - for creating a sample instead of pagestruct?
-
- EViews Developer
- Posts: 560
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Date of last observation
Code: Select all
%end = xyz.@last
%start = @datestr(@dateadd(@dateval(%end), -24, "M"))
smpl {%start} {%end}
Who is online
Users browsing this forum: No registered users and 9 guests