RMS Function


Returns the root mean square

Category: Descriptive Statistics

Syntax

RMS ( argument <, argument , >)

Arguments

argument

  • is a non-negative numeric constant, variable, or expression.

  • Tip: The argument list can consist of a variable list, which is preceded by OF.

Details

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 non-missing values.

Let be the number of arguments with non-missing values, and let x 1 , x 2 , ____, x n be the values of those arguments. The root mean square is

click to expand

Examples

SAS Statements

Results

x1=rms(1,7);

5

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

7

x3=rms(of x1-x2);

6.0827625303




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net