Date of maximum/minimum value of series

For questions regarding programming in the EViews programming language.

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

CrisisStudent
Posts: 49
Joined: Mon Nov 16, 2020 10:52 am

Date of maximum/minimum value of series

Postby CrisisStudent » Wed Jan 18, 2023 3:15 am

Hi all,

Is there any smart way of extracting a date of a maximum or minimum value of series. We found a workaround with setting sample and then using @strdate, but seems inelegant and complicated.

Thanks!
CrisisStudent

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

Re: Date of maximum/minimum value of series

Postby EViews Gareth » Wed Jan 18, 2023 7:27 am

Code: Select all

=@otod(@imax(X)) =@otod(@imin(X))

CrisisStudent
Posts: 49
Joined: Mon Nov 16, 2020 10:52 am

Re: Date of maximum/minimum value of series

Postby CrisisStudent » Thu Jan 19, 2023 2:40 am

Thanks, works!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests