<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
If there is no such command as "find min," or "find max," can you copy
the array, add a nonnumeric tag that indicates position (abcd), then
sort the array numerically & use the nonnumeric tag to indicate the
lowest number's position in the original array?<br>
<br>
Leisha Wharfield<br>
Decision Research<br>
Eugene, Oregon, USA<br>
<a class="moz-txt-link-abbreviated" href="mailto:leisha@decisionresearch.org">leisha@decisionresearch.org</a><br>
<br>
Colleen Parks wrote:<br>
<blockquote cite="mid006601c69adc$eb7d0700$a35aeda9@Kylab1A" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2912" name="GENERATOR">
  <style></style>
  <div><font face="Trebuchet MS" size="2">Hi,</font></div>
  <div> </div>
  <div><font face="Trebuchet MS" size="2">I've got an array to which
I've assigned a list of random numbers (e.g., Array(0) =
random(0,100)).  I need to find which element/array position has the
lowest value without sorting the array (position in the array is
important for another variable later on).  I've spent a good amount of
time searching to figure out what the code is to find the minimum value
of a list of variables, but haven't found anything yet.  There is no
obvious documentation of a general "find min" and "find max" function
outside of the summation object. (Note that a summation object won't
help because it will return the minimum of a set of values, but will
not, as far as I can tell, indicate which variable (or observation) the
minimum value is linked to).  There's got to be a find min/max ability
in there somewhere!  Can anyone point me in the right direction?</font></div>
  <div> </div>
  <div><font face="Trebuchet MS" size="2">Thanks!</font></div>
  <div><font face="Trebuchet MS" size="2">Colleen</font></div>
  <div> </div>
  <div> </div>
  <div><font face="Trebuchet MS" size="2">---------------------------------------<br>
Colleen Parks, Ph.D.<br>
Psychology Department<br>
University of California<br>
One Shields Ave.<br>
Davis, CA 95616</font></div>
  <div> </div>
  <div><font face="Trebuchet MS" size="2"><a
 href="mailto:cmparks@ucdavis.edu">cmparks@ucdavis.edu</a><br>
530.754.9439</font></div>
</blockquote>
</body>
</html>