Chapter Contents |
Previous |
Next |
The SURVEYREG Procedure |
For example, to place the "ParameterEstimates" table (Figure 62.7) in the previous section in an output data set, you use the ODS OUTPUT statement as follows.
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; ods output ParameterEstimates = MyParmEst; run;
The statement
ods output ParameterEstimates = MyParmEst;requests that the "ParameterEstimates" table that appears in Figure 62.7 to be placed in a SAS data set named MyParmEst.
The PRINT procedure displays observations of the data set MyParmEst.
proc print data=MyParmEst; run;
Figure 62.8 displays the observations in the data set MyParmEst.
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.