MEAN Function

Returns the arithmetic mean (average).

Category: Descriptive Statistics

Syntax

MEAN(argument-1<,...argument-n> )

Required Argument

argument

specifies a numeric constant, variable, or expression. 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.

Details

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).

Example

The following SAS statements produce these results.
SAS Statement
Result
x1=mean(2,.,.,6);
4
x2=mean(1,2,3,2);
2
x3=mean(of x1-x2);
3