PROC SURVEYREG assigns a name to each table it creates; these names are listed in Table 101.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Ā 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 101.10. For information about these tables, see the corresponding sections of ChapterĀ 19: Shared Concepts and Topics.
Table 101.10: ODS Tables Produced by PROC SURVEYREG
ODS Table Name |
Description |
Statement |
Option |
---|---|---|---|
ANOVA |
ANOVA for dependent variable |
||
ClassVarInfo |
Class level information |
Default |
|
ContrastCoef |
Coefficients of contrast |
||
Contrasts |
Analysis of contrasts |
Default |
|
CovB |
Covariance of estimated |
||
DataSummary |
Data summary |
Default |
|
DesignSummary |
Design summary |
Default |
|
DomainSummary |
Domain summary |
Default |
|
Effects |
Tests of model effects |
Defect |
|
FitStatistics |
Fit statistics |
Default |
|
HadamardMatrix |
Hadamard matrix |
||
InvXPX |
Inverse matrix of |
||
ParameterEstimates |
Estimated regression |
||
StrataInfo |
Stratum information |
||
VarianceEstimation |
Variance estimation |
Default |
|
XPX |
matrix |
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.