* scattmat.sas Christine Iodice 061209 ; * Course project team: Christine Iodice, Prasad Satich, Saranne Warner, Daniel Brockman ; * Course X446 SAS Data Analysis. Jian-min Liu, Instructor. ; %macro scattmat(data,vars); /* This macro is based on one supplied with the SAS system, but has been adapted and simplified. It uses PROC IML and therefore requires that SAS/IML be licensed. The macro has two arguments: the first is the name of the SAS data set that contains the data to be plotted; the second is a list of numeric variables to be plotted. Both arguments are required. The macro takes a pairwise approach to missing values. */ /* expand variable list and separate with commas */ data _null_; set &data (keep=&vars); length varlist $500. name $32.; array xxx {*} _numeric_; do i=1 to dim(xxx); call vname(xxx{i},name); varlist=compress(varlist||name); if i