The SURVEYREG Procedure

ODS Table Names

PROC SURVEYREG assigns a name to each table it creates; these names are listed in Table 10. 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.

The EFFECT, ESTIMATE, LSMEANS, LSMESTIMATE, MARGINS, and SLICE statements also create tables, which are not listed in Table 10. For information about these tables, see the corresponding sections of ChapterĀ 20, Shared Concepts and Topics.

Table 10: ODS Tables Produced by PROC SURVEYREG

ODS Table Name Description Statement Option
ANOVA ANOVA for dependent variable MODEL ANOVA
ClassVarInfo Class level information CLASS Default
ContrastCoef Coefficients of contrast CONTRAST E
Contrasts Analysis of contrasts CONTRAST Default
CovB Covariance of estimated
regression coefficients
MODEL COVB
DataSummary Data summary PROC Default
DesignSummary Design summary STRATA | CLUSTER Default
DomainSummary Domain summary DOMAIN Default
Effects Tests of model effects MODEL Default
FitStatistics Fit statistics MODEL Default
HadamardMatrix Hadamard matrix PROC PRINTH
InvXPX Inverse matrix of bold upper X prime bold upper X MODEL I
ParameterEstimates Estimated regression
coefficients
MODEL SOLUTION
StrataInfo Stratum information STRATA LIST
VarianceEstimation Variance estimation PROC Default
XPX bold upper X prime bold upper X matrix MODEL XPX


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 MyStrata, which contains the StrataInfo table, an output data set MyParmEst, which contains the ParameterEstimates table, and an output data set Cov, which contains the CovB table for the ice cream study discussed in the section Stratified Sampling:

title1 'Ice Cream Spending Analysis';
title2 'Stratified Sample Design';
proc surveyreg data=IceCream total=StudentTotals;
   strata Grade /list;
   class Kids;
   model Spending = Income Kids / solution covb;
   weight Weight;
   ods output StrataInfo = MyStrata
              ParameterEstimates = MyParmEst
              CovB = Cov;
run;

Note that the option CovB is specified in the MODEL statement in order to produce the covariance matrix table.

Last updated: December 09, 2022