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

RATIO

Name:
    RATIO (LET)
Type:
    Let Subcommand
Purpose:
    Compute the ratio of the sum of two variables.
Description:
    This statistic computes

      SUM[i=1 to n][Y1(i)]/SUM[i=1 to n][Y2(i)]

    In the current implementation, Y1 and Y2 are assumed to have the same number of elements.

    In the typical use of this command, Y2 denotes the number of cases or number of trials while Y1 denotes the corresponding number of successes or failures (e.g., the number of successes might be the number of false negatives or false positives). This statistic then computes the success rate over all groups.

Syntax:
    LET <par> = RATIO <y1> <y2>             <SUBSET/EXCEPT/FOR qualification>
    where <y1> is the first response variable;
                <y2> is the second response variable;
                <par> is a parameter where the computed ratio is stored;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET A = RATIO Y1 Y2
    LET A = RATIO Y1 Y2 SUBSET TAG > 2
Note:
    The following additional commands are supported

      TABULATE RATIO Y1 Y2 X
      CROSS TABULATE RATIO Y1 Y2 X1 X2

      RATIO PLOT Y1 Y2 X
      RATIO CROSS TABULATE PLOT Y1 Y2 X1 X2

      BOOTSTRAP RATIO PLOT Y1 Y2
      JACKNIFE RATIO PLOT Y1 Y2

Default:
    None
Synonyms:
    None
Related Commands:
    TABULATE = Compute a statistic for data with one grouping variable.
    CROSS TABULATE = Compute a statistic for data with two grouping variables.
    STATISTIC PLOT = Generate a plot of a statistic for data with a single grouping variable.
    CROSS TABULATE PLOT = Generate a plot of a statistic for data with two grouping variables.
    BOOTSTRAP PLOT = Generate a bootstrap plot for a given statistic.
Applications:
    Linear Regression
Implementation Date:
    12/2005
Program:
     
    LET Y1 = DATA 2 4 0 1 8 5 5 5 2 2
    LET Y2 = 10 FOR I = 1 1 10
    LET A = RATIO Y1 Y2
        

Date created: 12/2/2005
Last updated: 12/2/2005
Please email comments on this WWW page to alan.heckert@nist.gov.