Functions and CALL Routines |
Returns the arithmetic mean (average).
Category: |
Descriptive Statistics
|
MEAN(argument-1<,...argument-n>)
|
-
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. |
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
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.