Rms
Description
rms function returns the root mean square of a vector.
The rms value for a set of n values
is given by:
/math-d917e79348e59f6824420897c793886b.png)
Syntax
double rms(dataset vd)
Parameters
vd
- Input vector to calculate
Return
Return the root mean square of a vector.
Note: Missing values in vd won't be counted.
Example
//Calculate the root mean square of a vector. yr = rms(col(A));