Language Reference

SSQ Function

SSQ (matrix1 <, matrix2, …, matrix15> ) ;

This function is supported by the IML procedure and the iml action.

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);
print x;

Figure 437: Sums of Squares

x
91


Last updated: July 20, 2026