New Functions, Subroutines, and Modules

SAS/IML 12.3 introduced the following functions and subroutines for data analysis:

BLANKSTR function

returns a blank string of a specified length.

COL function

returns a matrix $M$, which is the same size as the input matrix, such that $M[i,j]=i$.

CORR2COV function

scales a correlation matrix into a covariance matrix.

COV2CORR function

scales a covariance matrix into a correlation matrix.

EXPANDGRID function

returns a matrix that contains all combinations of elements from specified vectors.

ISEMPTY function

returns 1 if the argument is an empty matrix (zero rows and columns) and 0 otherwise.

MAGIC function

returns a magic square of a given size.

RANDFUN function

returns a matrix of random numbers from a specified distribution.

ROW function

returns a matrix $M$, which is the same size as the input matrix, such that $M[i,j]=j$.

In addition, each of the following subroutines creates an ODS statistical graph from data in a SAS/IML matrix. The graph is displayed in the current ODS destination.

BAR call

creates a bar chart.

BOX call

creates a box plot.

HISTOGRAM call

creates a histogram.

SCATTER call

creates a scatter plot.

SERIES call

creates a series plot.