|
Chapter Contents |
Previous |
Next |
| The SURVEYMEANS Procedure |
PROC SURVEYMEANS produces its output in a number of tables, and each table has a unique ODS name. You can use these names to select the tables and create output data sets using ODS. Table 4.2 lists the names of the tables produced by PROC SURVEYMEANS.
Table 4.2: ODS Tables Produced in PROC SURVEYMEANS| ODS Table Name | Description | Statement | Option |
| Summary | Data Summary | PROC | default |
| ClassVarInfo | Class Level Information | CLASS | default |
| StrataInfo | Stratum Information | STRATA | LIST |
| Statistics | Statistics | PROC | default |
By referring to the names of such tables, you can use the ODS OUTPUT statement to place one or more of these tables in output data sets.
For example, the following statements create an output data set named MyStrata, which contains the "StrataInfo" table, and an output data set named MyStat, which contains the "Statistics" table for the ice cream study discussed in the section "Stratified Sampling".
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 StrataInfo = MyStrata
Statistics = MyStat;
run;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.