Find date

For questions regarding programming in the EViews programming language.

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

johansamuelsson
Posts: 165
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Find date

Postby johansamuelsson » Tue Nov 18, 2014 9:12 am

Hi

Is there any easy way to get the date for the minimum value. For example, if i have the series x I can find the minimum value by

Code: Select all

@min(x)
But how do I do to get the date for this value?

Regards Johan

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

Re: Find date

Postby EViews Gareth » Tue Nov 18, 2014 9:17 am

Assuming you know that the minimum is unique, something like:

Code: Select all

smpl if x = @min(x) %date = otods(1)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests