SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Contacts SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Auxiliary Chapter

INDEX MINIMUM

Name:
    INDEX MINIMUM
Type:
    Let Subcommand
Purpose:
    Compute the index of the minimum value in a variable.
Syntax:
    LET <par> = INDEX MINIMUM <resp>
                            <SUBSET/EXCEPT/FOR qualification>
    where <resp> is the variable for which the index minimum is to be computed;
                <par> is a parameter where the index minimum value is saved;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET K1 = INDEX MINIMUM Y1
Note:
    The following additional commands are supported

      TABULATE INDEX MINIMUM Y X
      CROSS TABULATE INDEX MINIMUM Y X1 ... XK
      LET Y2 = CROSS TABULATE INDEX MINIMUM Y X1 ... XK
      LET Y2 = MATRIX ROW INDEX MINIMUM M
      LET Y2 = MATRIX COLUMN INDEX MINIMUM M
      LET Y2 = MATRIX GRAND INDEX MINIMUM M
      LET Y2 = MATRIX PARTITION INDEX MINIMUM M NROW NCOL
      LET Y2 = SORT BY INDEX MINIMUM Y

      INDEX MININUM PLOT Y X
      CROSS TABULATE INDEX MININUM PLOT Y X1 X2

      INDEX MINIMUM BLOCK PLOT Y X1 ... XK

Default:
    None
Synonyms:
    None
Related Commands:
    INDEX MAXIMUM = Compute the index for the maximum value of a variable.
    INDEX EXTREME = Compute the index for the most extreme value of a variable.
    MINIMUM = Compute the minimum value of a variable.
    MAXIMUM = Compute the maximum value of a variable.
    MEAN = Compute the mean of a variable.
    MAX = Library function to compute the maximum of two numbers.
    MIN = Library function to compute the minimum of two numbers.
Applications:
    Data Analysis
Implementation Date:
    2009/2
Program 1:
     
    LET Y1 = NORMAL RANDOM NUMBERS FOR I = 1 1 100
    LET A = INDEX MINIMUM Y1
        
Program 2:
     
    .  Generate a "table" plot that contains
    .
    .    1) Subset flow category = 1
    .    2) Row denotes flow value
    .       Column denotes cond value
    .    3) Plot symbol denotes algorithm corresponding
    .       to "minimum value"
    .  Step 1: Read the data
    .
    dimension 400 variables
    read mills96.dat flow alg cond flowcat y1 to y14
    retain flow alg cond y1  subset flowcat = 1
    .
    .  Step 2: Perform the relevant cross-tabulations
    .
    let 
    set let cross tabulate collapse
    let ytemp  = cross tabulate group two flow cond
    let xtemp  = cross tabulate group one flow cond
    let minind = cross tabulate index minimum y1 flow cond
    let ntemp  = size ytemp
    let vsize = 1 for i = 1 1 ntemp
    .
    .  Step 3: Generate the table plot using the symbol plot command
    .
    char 1 2 3 4 5 6 7
    y1label Condition Value
    x1label Flow Value
    xlimits 1 24
    major xtic mark number 24
    minor xtic mark number 0
    ylimits 1 32
    major ytic mark number 32
    minor ytic mark number 0
    tic offset units data
    tic offset 1 1
    .
    symbol plot ytemp xtemp vsize minind
        
    plot generated by sample program

Date created: 6/19/2009
Last updated: 6/19/2009
Please email comments on this WWW page to alan.heckert@nist.gov.