Previous Page | Next Page

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 Table 85.3. For more information about ODS, see Chapter 20, Using the Output Delivery System.

Table 85.3 ODS Tables Produced by PROC SURVEYMEANS

ODS Table Name

Description

Statement

Option

ClassVarInfo

Class level information

CLASS

default

Domain

Statistics in domains

DOMAIN

default

HadamardMatrix

Hadamard matrix

PROC

PRINTH

Ratio

Statistics for ratios

RATIO

default

Quantiles

Quantiles

PROC

default

Statistics

Statistics

PROC

default

StrataInfo

Stratum information

STRATA

LIST

Summary

Data summary

PROC

default

VarianceEstimation

Variance estimation

PROC

default

For example, the following statements create an output data set MyStrata, which contains the "StrataInfo" table, and an output data set 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 Sample Design';
   proc surveymeans data=IceCream total=StudentTotals;
      strata Grade / list; 
      var Spending Group;
      weight Weight;
      ods output StrataInfo = MyStrata
                 Statistics = MyStat;                 
   run;
Previous Page | Next Page | Top of Page