Functions and CALL Routines 
Returns the root mean square of the nonmissing arguments.
Category: 
Descriptive Statistics

RMS(argument<,argument,...>)


argument

is a numeric constant, variable, or expression.
Tip: 
The argument list can consist
of a variable list, which is preceded by OF. 
The root mean square is the square root
of the arithmetic mean of the squares of the values. If all the arguments
are missing values, then the result is a missing value. Otherwise, the result
is the root mean square of the nonmissing values.
Let
be the number of arguments with nonmissing values, and
let
be the values of those arguments. The root mean square
is
SAS Statements 
Results 
x1=rms(1,7);

5

x2=rms(.,1,5,11);

7

x3=rms(of x1x2);

6.0827625303

Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.