Other subscript operators enable you to compute the sum, mean, and sum of squares for rows or columns of a matrix.īut what if you need to compare the values across two different matrices? To paraphrase a popular ad campaign, 'there's an op for that!' Row and column operations on a data matrix.
These min/max operators are two examples of subscript operators that perform How to use subscript operators to compute the min or max of a row or column of a data matrix. This article describes the elementwise minimum and maximum operators. They are less intuitive, but can be quite powerful because they enable you perform computations without writing a DO loop. Operators can act on a matrix or on rows or columns of a matrix. However, the SAS/IML language also has quite a few operators. Like most programming languages, the SAS/IML language has many functions.