max index of vector

For questions regarding programming in the EViews programming language.

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

ravage
Posts: 7
Joined: Mon Nov 03, 2014 5:27 pm

max index of vector

Postby ravage » Tue Apr 25, 2017 9:28 pm

Hi,
I have a vector of values and want to find the index of the maximum value. Say if the third value is the biggest it will return 3. Is this possible?
thanks

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

Re: max index of vector

Postby EViews Gareth » Tue Apr 25, 2017 9:31 pm

Code: Select all

=@imax(x)
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 34 guests