Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

SSQ Function

calculates the sum of squares of all elements

SSQ( matrix1<, matrix2,..., matrix15>)

where matrix is a numeric matrix or literal.

The SSQ function returns as a single numeric value the (uncorrected) sum of squares for all the elements of all arguments. You can specify as many as 15 numeric argument matrices.

The SSQ function checks for missing arguments and does not include them in the accumulation. If all arguments are missing, the result is 0.

An example of a valid statement follows:

   a={1 2 3, 4 5 6};
   x=ssq(a);

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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