VAR Function

Returns the variance 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=var(4,2,3.5,6);
2.7291666667
x2=var(4,6,.);
2
x3=var(of x1-x2);
0.2658420139