SAS PROC METALIB and ODS OUTPUT

The SAS® METALIB Procedure, available in SAS 9.3, 9.2 and 9.1, is used to keep logical table metadata in sync with the physical tables that the metadata describes. It can also be used to report on any differences or discrepancies between the physi…

A SAS 9.3 Macro Trick: %put &=var

This is new since SAS 9.3 on how to display macro variable name and its value. Try to run %let var=1,2,3; %put &=var; or %macro test(var);     %put &=var; %mend; %test(%str(1,2,3)) and you will get in Log window VAR=1,2,3 You can read from SAS 9.3 online doc: If you place an equal sign between the […]

Constructing block matrices with applications to mixed models

The other day I was constructing covariance matrices for simulating data for a mixed model with repeated measurements. I was using the SAS/IML BLOCK function to build up the “R-side” covariance matrix from smaller blocks. The matrix I was constructing was block-diagonal and looked like this: The matrix represents a […]