Previous Page | Next Page

The SURVEYREG Procedure

ODS Table Names

PROC SURVEYREG  assigns a name to each table it creates; these names are listed in Table 88.8. 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 20, Using the Output Delivery System.

To improve the consistency among procedures, tables that are generated by the ESTIMATE statements are changed slightly in appearance and formatting compared to releases prior to SAS/STAT 9.22. However, the statistics in the "Estimates" table remain unchanged. The "Coef" table replaces the previous "EstimateCoef" table that displays the matrix coefficients of an estimable function of the parameters.

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

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

FitStatistics

Fit statistics

MODEL

Default

HadamardMatrix

Hadamard matrix

PROC

PRINTH

InvXPX

Inverse matrix of

MODEL

I

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