SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

POSITIONAL TABULATION

Name:
    POSITIONAL TABULATION
Type:
    Analysis Command
Purpose:
    Generate a position tabulation for one of Dataplot's supported univariate statistics for either a list of variables or a list of matrices.
Description:
    Dataplot typically computes statistics for the rows of a variable. However, there may be times where it is desirable to compute a statistic for each row of a list of variables. For example, given the variables A, B, C, and D where each variable has 5 rows, the POSITIONAL TABULATION MEAN A B C D command will print the means for

      row 1: mean of A(1), B(1), C(1), D(1)
      row 2: mean of A(2), B(2), C(2), D(2)
      row 3: mean of A(3), B(3), C(3), D(3)
      row 4: mean of A(4), B(4), C(4), D(4)
      row 5: mean of A(5), B(5), C(5), D(5)

    If you specify a list of matrices, then the statistic will be computed for each (i,j) position of the matrices.

    The list can contain either variables or matrices, but not a mix. All names in the list should have the same dimension. That is, if it is a list of variables, then each variable should have the same length. If it is a list of matrices, then each matrix should have the same number of rows and the same number of columns.

Syntax:
    POSITIONAL TABULATION <stat> <y1> ... <yk>
                            <SUBSET/EXCEPT/FOR qualification>
    where <stat> is one of Dataplot's supported statistics;
                <y1> ... <yk> is a list of 1 to 30 response variables or matrices (with the same dimensions);
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    POSITIONAL TABULATION MEAN Y1 TO Y5
    POSITIONAL TABULATION MEAN Y1 TO Y5 FOR I = 1 1 25
Note:
    For a list of supported statistics, enter the command

    Only statistics that operate on a single response are supported.

Note:
    The output is also written to the file DPST1F.DAT. For example, you can do something like the following

      POSITIONAL TABULATION MEAN A B C D
      SKIP 0
      READ DPST1F.DAT ROW COL YMEAN
Note:
    To specify the number of digits to print to the right of the decimal point, enter the command (the default is exponential format)

      SET WRITE DECIMALS <value>
Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Exploratory Data Analysis
Implementation Date:
    2011/9
Program 1:
     
    let y1 = data 1 2 3
    let y2 = data 4 5 6
    let y3 = data 7 8 9
    .
    set write decimals 3
    positional tabulation mean y1 y2 y3
    .
    read dpst1f.dat row col ymean
        
    The following output is generated.
                Positional Tabulation (MEAN)
     
    -------------------------------
         Row  Column      Statistic
    -------------------------------
           1       1          4.000
           2       1          5.000
           3       1          6.000
        
Program 2:
     
    read matrix a
    1 2 3
    4 5 6
    7 8 9
    end of data
    .
    read matrix b
    11 21 31
    41 51 61
    71 81 91
    end of data
    .
    read matrix c
    101  102  103
    111  121  131
    141  151  161
    end of data
    .
    set write decimals 1
    positional tabulation sum a b c
        
    The following output is generated.
                Positional Tabulation (SUM)
     
    -------------------------------
         Row  Column      Statistic
    -------------------------------
           1       1          113.0
           2       1          156.0
           3       1          219.0
           1       2          125.0
           2       2          177.0
           3       2          240.0
           1       3          137.0
           2       3          198.0
           3       3          261.0
     
        
Date created: 09/22/2011
Last updated: 12/11/2023

Please email comments on this WWW page to alan.heckert@nist.gov.