ABSTRACT

LIBNAME abcxyz 'a:\data'; LIBNAME library 'a:\formats'; PROC MEANS DATA = abcxyz.tnfdata MEAN CLM

MAXDEC = 2; VAR rep1 rep2 rep3 tnfaver; CLASS mtb fat;

This more advanced use of PROC MEANS tells SAS to summarise the variables defined by the VAR statement and to show the output broken down by the different classes of “mtb” and “fat”. The MEAN option tells SAS to calculate and display the means, and the CLM option tells SAS to compute 95% confidence intervals. The MAXDEC = 2 option tells SAS that the maximum number of decimal places to print is two.