Chapter Contents |
Previous |
Next |
The SURVEYMEANS Procedure |
ODS Table Name | Description | Statement | Option |
ClassVarInfo | Class level information | CLASS | default |
Statistics | Statistics | PROC | default |
StrataInfo | Stratum information | STRATA | LIST |
Summary | Data summary | 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.