Previous Page | Next Page

Functions and CALL Routines

SKEWNESS Function



Returns the skewness of the nonmissing arguments.
Category: Descriptive Statistics

Syntax
Arguments
Details
Examples

Syntax

SKEWNESS(argument-1,argument-2,argument-3<,...argument-n>)


Arguments

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.


Examples

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

Previous Page | Next Page | Top of Page