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 2 Vol 1

RATIO

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

      \( \frac{\sum_{i=1}^{n}{Y_1(i)}} {\sum_{i=1}^{n}{Y_2(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:
    Dataplot statistics can be used in 20+ commands. For details, enter

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
        

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 12/02/2005
Last updated: 10/07/2016

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