Previous Page | Next Page

The SURVEYREG Procedure

ODS Table Names

PROC SURVEYREG assigns a name to each table it creates. You can use these names to reference the table when by using the Output Delivery System (ODS) to select tables and create output data sets. These names are listed in Table 86.3. For more information about ODS, see Chapter 20, Using the Output Delivery System.

Table 86.3 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

defect

EstimateCoef

Coefficients of estimate

ESTIMATE

E

Estimates

Analysis of estimable functions

ESTIMATE

default

FitStatistics

Fit statistics

MODEL

default

HadamardMatrix

Hadamard matrix

PROC

PRINTH

InvXPX

Inverse matrix of

MODEL

INV

ParameterEstimates

Estimated regression
coefficients

MODEL

SOLUTION

StrataInfo

Stratum information

STRATA

LIST

VarianceEstimation

Variance estimation

PROC

default

XPX

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 Simple Random 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.

Previous Page | Next Page | Top of Page