MEAN Function


Returns the arithmetic mean (average)

Category: Descriptive Statistics

Syntax

MEAN ( argument <, argument , >)

Arguments

argument

  • is numeric. At least one non-missing argument is required. Otherwise, the function returns a missing value.

  • Tip: The argument list can consist of a variable list, which is preceded by OF.

Comparisons

The GEOMEAN function returns the geometric mean, the HARMEAN function returns the harmonic mean, and the MEDIAN function returns the median of the non-missing values, whereas the MEAN function returns the arithmetic mean (average).

Examples

SAS Statements

Results

x1=mean(2,.,.,6);

4

x2=mean(1,2,3,2);

2

x3=mean(of x1-x2);

3

See Also

Function:

  • 'GEOMEAN Function' on page 567

  • 'GEOMEANZ Function' on page 568

  • 'HARMEAN Function' on page 574

  • 'HARMEANZ Function' on page 575

  • 'MEDIAN Function' on page 645




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net