Functions and CALL Routines |
Returns the skewness of the nonmissing arguments.
Category: |
Descriptive Statistics
|
SKEWNESS(argument-1,argument-2,argument-3<,...argument-n>)
|
-
argument
-
specifies a numeric constant, variable,
or expression.
At least three non-missing arguments are required. Otherwise,
the function returns a missing value. If all non-missing arguments have equal
values, the skewness is mathematically undefined. The SKEWNESS function returns
a missing value and sets _ERROR_ equal to 1.
The argument list can consist of a variable list, which is preceded
by OF.
SAS Statements |
Results |
x1=skewness(0,1,1);
|
-1.732050808
|
x2=skewness(2,4,6,3,1);
|
0.5901286564
|
x3=skewness(2,0,0);
|
1.7320508076
|
x4=skewness(of x1-x3);
|
-0.953097714
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.