|
Chapter Contents |
Previous |
Next |
| The SURVEYMEANS Procedure |
For example, to place the "Statistics" table shown in Figure 61.4 in the previous section in an output data set, you use the ODS OUTPUT statement as follows:
title1 'Analysis of Ice Cream Spending';
title2 'Stratified Simple Random Sampling Design';
proc surveymeans data=IceCream total=StudentTotal;
stratum Grade / list;
var Spending Group;
ods output Statistics=MyStat;
run;
The statement
ods output Statistics=MyStat;requests that the "Statistics" table that appears in Figure 61.4 be placed in a SAS data set named MyStat.
The PRINT procedure displays observations of the data set MyStat:
proc print data=MyStat; run;
Figure 61.4 displays the observations in the data set MyStat.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.