SKEWNESS Function

Returns the skewness of the nonmissing arguments.

Category: Descriptive Statistics

Syntax

Required Argument

argument

specifies a numeric constant, variable, or expression.

Details

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.

Example

The following SAS statements produce these results.
SAS Statement
Result
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