Returns the variance
Category: Descriptive Statistics
VAR ( argument,argument, )
argument
is numeric. 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.
SAS Statements | Results |
---|---|
x1=var(4,2,3.5,6); | 2.7291666667 |
x2=var(4,6,.); | 2 |
x3=var(of x1-x2); | 0.2658420139 |