Chapter Contents |
Previous |
Next |
Language Reference |
where dimension specifies the size of the identity matrix.
The I function creates an identity matrix with dimension rows and columns. The diagonal elements of an identity matrix are 1s; all other elements are 0s. The value of dimension must be an integer greater than or equal to 1. Noninteger operands are truncated to their integer part.
For example, the statement
a=I(3);yields the result
A 1 0 0 0 1 0 0 0 1
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.