DOC STAT - Get Statistics from column in Document file

(11/22/10)

PURPOSE

Computes minimum, maximum, sum, average, and standard deviation from chosen register column of document file.   Example.

SEE ALSO

DOC CREATE [Create Document file]

USAGE

.OPERATION: DOC STAT [nval],[min],[max],[sum],[col-avg],[col-std]

[This operation can return up to 6 optional register variables:
Variable Example Receives
First [nval] Number of values in col.
Second [min] Minimum value in col.
Third [max] Maximum value in col.
Fourth [sum] Sum of values in col
Fifth [col-avg] Average of values in col.
Sixth [col-std] Standard deviation of values in col.

.INPUT DOCUMENT FILE: DOC002
[Enter name of input document file.]

.COLUMN TO BE ANALYZED (0 IS KEY): 1
[Enter register column number to be analyzed. There is an error if this column does not exist anywhere in the document file. If the requested column is not present in a line from the file, then that line is ignored.

NOTES

  1. These statistical parameters will also be listed in the results file.

  2. Standard deviation is obtained from number of values - 1.

SUBROUTINES

DOCS1, OPENDOC, LUNDOC

CALLER

DRIV1

© Copyright Notice /       Enquiries: spider@wadsworth.org