Functions and CALL Routines |
Returns the variance of the nonmissing arguments.
Category: |
Descriptive Statistics
|
VAR(argument-1,argument-2<,...argument-n>)
|
-
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.
SAS Statements |
Results |
x1=var(4,2,3.5,6);
|
2.7291666667
|
x2=var(4,6,.);
|
2
|
x3=var(of x1-x2);
|
0.2658420139
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.