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;
  • SAS-data-set is the name of the data set to be analyzed.
  • statistic-keyword(s) specify the statistics to compute.
  • option(s) control the content, analysis, and appearance of output.
In its simplest form, PROC MEANS prints the n-count (number of nonmissing values), the mean, the standard deviation, and the minimum and maximum values of every numeric variable in a data set.
proc means data=perm.survey; 
run;
Figure 9.1 Default PROC MEANS Output
When you use the MEANS procedure, the default output prints the n-count, the mean, the standard deviation, the minimum and maximum values for every numeric variable in the data set.
Last updated: January 10, 2018
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.135.36