O'Reilly logo

A Step-by-Step Approach to Using SAS® for Univariate & Multivariate Statistics, Second Edition by Edward J. Stepanksi Ph.d., Larry Hatcher, Norm O'Rourke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required