Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The SURVEYMEANS Procedure

ODS Table Names

PROC SURVEYMEANS generates output using the Output Delivery System (ODS). For more information on ODS, see the chapter titled "Using the Output Delivery System" in the SAS/STAT Procedures Guide.

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
SummaryData SummaryPROCdefault
    
ClassVarInfoClass Level InformationCLASSdefault
    
StrataInfoStratum InformationSTRATALIST
    
StatisticsStatisticsPROCdefault

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.