Previous Page | Next Page

Functions and CALL Routines

MEAN Function



Returns the arithmetic mean (average).
Category: Descriptive Statistics

Syntax
Arguments
Comparisons
Examples
See Also

Syntax

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


Arguments

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.

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

GEOMEANZ Function

HARMEAN Function

HARMEANZ Function

MEDIAN Function

Previous Page | Next Page | Top of Page