Returns the arithmetic mean (average)
Category: Descriptive Statistics
MEAN ( argument <, argument , >)
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.
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).
SAS Statements | Results |
---|---|
x1=mean(2,.,.,6); | 4 |
x2=mean(1,2,3,2); | 2 |
x3=mean(of x1-x2); | 3 |
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