Previous Page | Next Page

Functions and CALL Routines

VAR Function



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

Syntax
Arguments
Examples

Syntax

VAR(argument-1,argument-2<,...argument-n>)


Arguments

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.


Examples

SAS Statements Results
x1=var(4,2,3.5,6);
2.7291666667
x2=var(4,6,.);
2
x3=var(of x1-x2);
0.2658420139

Previous Page | Next Page | Top of Page