SAS Institute. The Power to Know

SAS/IML(R) 9.2 User's Guide


Working with Matrices

Overview

SAS/IML software provides many ways to create matrices. You can create matrices by doing any of the following:

  • entering data yourself as a matrix literal
  • using assignment statements
  • using matrix-generating functions
  • creating submatrices from existing matrices with subscripts
  • using SAS data sets (see Chapter 6 for more information)

Once you have defined matrices, you have access to many operators and functions for working on them in matrix expressions. These operators and functions facilitate programming and make referring to submatrices efficient and simple.

Finally, you have several means available for tailoring your displayed output.