date of minimum value of series within a subset of workfile range

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BT454
Posts: 108
Joined: Wed Aug 02, 2017 6:07 am

date of minimum value of series within a subset of workfile range

Postby BT454 » Mon Apr 26, 2021 11:22 am

Hi all,
How might I return the date of the minimum value of a series, for just a subset of the range of the workfile.
I tried
smpl if x=@min(x)
%date=@otods(1)
But this evaluates the entire series. Is there a way to modify the smpl command so that it evaluates the series for a sub-sample of the entire workfile range (i.e. if the workfile is from 2010-2020, but I would like to evaluate the series from just 2018-2019, and set the sample period to the minimum value of that period?)
Thanks!
Bob

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

Re: date of minimum value of series within a subset of workfile range

Postby EViews Gareth » Mon Apr 26, 2021 2:39 pm

Code: Select all

=@otod(@imin(x))
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 29 guests