date of minimum value of series within a subset of workfile range
Posted: 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
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