The SURVEYMEANS Procedure

ODS Table Names

PROC SURVEYMEANS assigns a name to each table it creates; these names are listed in Table 4. You can use these names to refer to tables when you use the Output Delivery System (ODS) to select tables and create output data sets. For more information about ODS, see ChapterĀ 23, Using the Output Delivery System.

Table 4: ODS Tables Produced by PROC SURVEYMEANS

ODS Table Name Description Statement Option
ClassVarInfo Class level information CLASS Default
Domain Statistics in domains DOMAIN Default
DomainDiffs Differences of domain means DOMAIN DIFFMEANS
DomainMeanCov Covariance matrix of domain means DOMAIN COV
DomainGeoMeans Statistics related to geometric means in domains PROC and DOMAIN Keywords
DomainQuantiles Quantiles in domains DOMAIN Default
DomainRatio Statistics for ratios in domains DOMAIN and RATIO Default
GeometricMeans Statistics related to geometric means PROC Keywords
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 VARMETHOD=BOOTSTRAP | BRR | JK
or NOMCAR


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';
proc surveymeans data=IceCream total=StudentTotals;
   strata Grade / list;
   var Spending Group;
   weight Weight;
   ods output
      StrataInfo = MyStrata
      Statistics = MyStat;
run;
Last updated: December 09, 2022