Dataplot Vol 2 Vol 1

# HARMONIC MEAN

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

$$\mbox{HM} = \frac{n} {\sum_{i=1}^{n}{1/X_{i}}}$$
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:
Dataplot statistics can be used in a number of commands. For details, enter

Default:
None
Synonyms:
None
Related Commands:
 MEAN = Compute the mean. MEDIAN = Compute the median. GEOMETRIC MEAN = Compute the geometric mean. STATISTICS PLOT = Generate a statistic versus subset plot. BOOTSTRAP PLOT = Generate a bootstrap plot. TABULATE = Perform a tabulation for a specified statistic.
Applications:
Data Analysis
Implementation Date:
2000/01
Program:
LET Y1 = NORMAL RANDOM NUMBERS FOR I = 1 1 100
LET A1 = HARMONIC MEAN Y1

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

Date created: 06/05/2001
Last updated: 11/16/2015