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


HARMONIC MEAN

Name:
    HARMONIC MEAN (LET)
Type:
    Let Subcommand
Purpose:
    Compute the harmonic mean for a variable.
Description:
    The harmonic mean is defined as:

      XHM = N/SUM(1/Xi)
Syntax:
    LET <par> = HARMONIC MEAN <y1>             <SUBSET/EXCEPT/FOR qualification>
    where <y1> is the response variable;
                <par> is a parameter where the computed harmonic mean is stored;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET A = HARMONIC MEAN Y1
    LET A = HARMONIC MEAN Y1 SUBSET TAG > 2
Note:
    Support for the harmonic mean has been added to the following plots:

      HARMONIC MEAN PLOT
      BOOTSTRAP HARMONIC MEAN PLOT
      JACKNIFE HARMONIC MEAN PLOT
      CROSS TABULATE HARMONIC MEAN PLOT
      INTERACTION HARMONIC MEAN PLOT
      HARMONIC MEAN INFLUENCE CURVE
      CROSS TABULATE HARMONIC MEAN
      TABULATE HARMONIC MEAN
      LET ... = CROSS TABULATE HARMONIC MEAN
Default:
    None
Synonyms:
    None
Related Commands:
    MEAN = Compute the mean.
    MEDIAN = Compute the median.
    GEOMETRIC MEAN = Compute the harmonic mean.
    STATISTIC PLOT = Generate a statistic vs. subset plot.
    BOOTSTRAP PLOT = Generate a bootstrap plot.
    JACKNIFE PLOT = Generate a jacknife plot.
    CROSS TABULATE PLOT = Generate a cross tabulate plot.
    INTERACTION PLOT = Generate an interaction plot.
Applications:
    Data Analysis
Implementation Date:
    2000/1
Program:
    LET Y1 = NORMAL RANDOM NUMBERS FOR I = 1 1 100
    LET A1 = HARMONIC MEAN Y1

Date created: 6/5/2001
Last updated: 4/4/2003
Please email comments on this WWW page to alan.heckert@nist.gov.