Computing Descriptive Statistics with PROC MEANS

You can use PROC MEANS to analyze quantitative (numeric) variables. For each variable analyzed, it provides the following information:

  • the number of observations on which calculations were performed (abbreviated “N” in the output);

  • the mean;

  • the standard deviation;

  • the minimum (smallest) value observed;

  • the maximum (largest) value observed.

These statistics are produced by default, and some additional statistics (to be described later) can also be requested as options.

Here is the general form for PROC MEANS:

PROC MEANS DATA=dataset-name
           option-list
           statistic-keyword-list ;
   VAR variable-list  ;
RUN;

The PROC MEANS Statement

The PROC MEANS statement begins with “PROC MEANS” and ends with a semicolon. ...

Get A Step-by-Step Approach to Using SAS® for Univariate & Multivariate Statistics, Second 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.