Chapter Contents |
Previous |
Next |
The SURVEYREG Procedure |
ODS Table Name | Description | Statement | Option |
ANOVA | ANOVA for dependent variable | MODEL | default |
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 | MODEL | default |
DesignSummary | Design summary | STRATA | CLUSTER | default |
Effects | Tests of model effects | MODEL | |
EstimateCoef | Coefficients of estimate | ESTIMATE | E |
Estimates | Analysis of estimable functions | ESTIMATE | default |
FitStatistics | Fit summary | MODEL | default |
InvXPX | Inverse matrix of X'X | MODEL | INV |
ParameterEstimates | Estimated regression coefficients | MODEL | default |
StrataInfo | Stratum information | STRATA | LIST |
XPX | X'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 named MyStrata, which contains the "StrataInfo" table, an output data set named MyParmEst, which contains the "ParameterEstimates" table, and an output data set named 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 Sampling Design'; proc surveyreg data=IceCream total=StudentTotal; strata Grade /list; class Kids; model Spending = Income Kids / solution covb;
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.
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.