Find the position of the minimun value in a vector

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

lpando08
Posts: 29
Joined: Tue Apr 03, 2018 1:13 pm

Find the position of the minimun value in a vector

Postby lpando08 » Fri Jun 01, 2018 12:51 pm

Hello,

How I can find the position of the minimun value in a vector like this (below) ? I know that the minimun value is in the position 63 but because I have seen it in the "Descriptive Stats", but how I can extract this value maybe in a scalar? I want to compute the number of the position.

vector (91) a
for !i=10 to 100
!j=!i-9
a(!j)=ssrt_!i
next

Thanks!

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

Re: Find the position of the minimun value in a vector

Postby EViews Gareth » Fri Jun 01, 2018 12:57 pm

Code: Select all

=@imin(a)
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 17 guests