Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The SURVEYMEANS Procedure

ODS Table Names

PROC SURVEYMEANS assigns a name to each table it creates. You can use these names to reference the table when using the Output Delivery System (ODS) to select tables and create output data sets. These names are listed in the following table. For more information on ODS, see Chapter 15, "Using the Output Delivery System."

Table 61.2: ODS Tables Produced in PROC SURVEYMEANS
ODS Table Name Description Statement Option
ClassVarInfoClass level informationCLASSdefault
StatisticsStatisticsPROCdefault
StrataInfoStratum informationSTRATALIST
SummaryData summaryPROCdefault

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
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.