Language Reference |
calculates the sum of squares of all elements
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);
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.