![]() Chapter Contents |
![]() Previous |
![]() Next |
| The MEANS Procedure |
PROC MEANS and PROC SUMMARY are very similar; see The SUMMARY Procedure for an explanation of the differences.
The Default Descriptive Statistics shows the default output that PROC MEANS displays. The data set that PROC MEANS analyzes contains the integers 1 through 10. The output reports the number of observations, the mean, the standard deviation, the minimum value, and the maximum value. The statements that produce the output follow:
proc means data=OnetoTen; run;
The Default Descriptive Statistics
Specified Statistics for Class Levels and Identification of Maximum Values shows the results of a more extensive analysis of two variables, MoneyRaised and HoursVolunteered. The analysis data set contains information about the amount of money raised and the number of hours volunteered by high-school students for a local charity. PROC MEANS uses six combinations of two categorical variables to compute the number of observations, the mean, and the range. The first variable, School, has two values and the other variable, Year, has three values. For an explanation of the program that produces the output, see Identifying an Extreme Value with the Output Statistics.
Specified Statistics for Class Levels and Identification of Maximum Values
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.