Page 1 of 1
Date of last observation
Posted: Mon Jun 15, 2015 11:51 am
by miorinnovo
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
Re: Date of last observation
Posted: Mon Jun 15, 2015 5:04 pm
by EViews Gareth
Code: Select all
%end = xyz.@last
pagestruct(end={%end})
Re: Date of last observation
Posted: Mon Jun 15, 2015 7:33 pm
by miorinnovo
Thanks Gareth!
Re: Date of last observation
Posted: Wed Oct 03, 2018 9:04 am
by geoanstats
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?
Re: Date of last observation
Posted: Wed Oct 03, 2018 9:17 am
by EViews Matt
Code: Select all
%end = xyz.@last
%start = @datestr(@dateadd(@dateval(%end), -24, "M"))
smpl {%start} {%end}