STD Function

Returns the standard deviation of the nonmissing arguments.

Category: Descriptive Statistics

Syntax

Required Argument

argument

specifies a numeric constant, variable, or expression. At least two nonmissing arguments are required. Otherwise, the function returns a missing value. 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=std(2,6);
2.8284271247
x2=std(2,6,.);
2.8284271427
x3=std(2,4,6,3,1);
1.9235384062
x4=std(of x1-x3);
0.5224377453