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 MAXIMUM

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

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

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

      INDEX MAXIMUM BLOCK PLOT Y X1 ... XK

Default:
    None
Synonyms:
    None
Related Commands:
    INDEX MINIMUM = Compute the index for the minimum 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 MAXIMUM 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 "maximum 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 maxind = cross tabulate index maximum 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 maxind
        
    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.