Computing Statistics Using PROC MEANS

What Does the MEANS Procedure Do?

The MEANS procedure provides data summarization tools to compute descriptive statistics for variables across all observations and within groups of observations. For example, PROC MEANS does the following:
  • calculates descriptive statistics based on moments
  • estimates quantiles, which includes the median
  • calculates confidence limits for the mean
  • identifies extreme values
  • performs a t test
By default, PROC MEANS displays output.

The PROC MEANS Step

The MEANS procedure can include many statements and options for specifying statistics.
Syntax, MEANS procedure:
PROC MEANS <DATA=SAS-data-set>
<statistic-keyword(s)> <option(s)>;
RUN; ...

Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.