Proc Means - A Simple Example

Proc MEANS is a SAS procedure that is used to provide summary statistics about a given data set or table. The MEANS procedure is used to create summary datasets and printed listings of the summarized values.

Simple example using proc means:

proc means data=sashelp.class sum mean std; /* Specify input data set and summary stats */

var age height;                          /* Specify the variables to be summarized */

title 'Sum, mean and s.d. for age and height'; /* Add a title to the listing (optional) */


This example uses the built in sashelp.class data set and can be run from any SAS session to show a simple example of how proc MEANS works.