ODS features: |
|
Other SAS features: |
PROC GLM |
PROC REG |
PROC PRINT |
|
Data set: |
IRON
|
This example creates and prints data sets from the parameter
estimates that PROC REG and PROC GLM generate. These procedures are part of SAS/STAT software.
Note: This example uses file names that may not be valid
in all operating environments. To successfully run the example in your operating
environment, you may need to change the file specifications. See Alternative ODS HTML Statements for Running Examples in Different Operating Environments.
| options nodate pageno=1 pagesize=60 linesize=72; |
| ods html body='parameter-estimates-body.htm'
frame='parameter-estimates-frame.htm'
contents='parameter-estimates-contents.htm'; |
| ods select ParameterEstimates(persist); |
| ods output ParameterEstimates(match_all persist=proc)
=IronParameterEstimates; |
| proc reg data=iron;
model loss=fe;
title 'Parameter Estimate from PROC REG';
run;
quit;
proc glm data=iron;
model loss=fe;
title 'Parameter Estimate from PROC GLM';
run;
quit; |
| ods select all; |
| proc print data=IronParameterEstimates noobs;
title 'PROC PRINT Report of the Data set from PROC REG';
run;
proc print data=IronParameterEstimates1 noobs heading=horizontal;
title 'PROC PRINT Report of the Data set from PROC GLM';
run; |
| ods html close;
ods output close; |
The HTML output includes the parameter estimates from
PROC REG, the parameter estimates from PROC GLM, and reports of the data sets
that ODS created from each set of parameter estimates.
The table of contents identifies output objects by their
labels. The label for ParameterEstimates in
PROC REG is Parameter Estimates . The corresponding
label in PROC GLM is Solutions . Notice how
the column widths in the HTML output are automatically adjusted to fit the
data. Compare this layout to the layout of the columns in Listing Output from the REG, GLM, and PRINT Procedures.
|
|
Listing Output from the REG, GLM, and PRINT Procedures
Parameter Estimate from PROC REG 1
The REG Procedure
Model: MODEL1
Dependent Variable: Loss
Parameter Estimates
Parameter Standard
Variable DF Estimate Error t Value Pr > |t|
Intercept 1 129.78660 1.40274 92.52 <.0001
Fe 1 -24.01989 1.27977 -18.77 <.0001 |
Parameter Estimate from PROC GLM 2
The GLM Procedure
Dependent Variable: Loss
Standard
Parameter Estimate Error t Value Pr > |t|
Intercept 129.7865993 1.40273671 92.52 <.0001
Fe -24.0198934 1.27976715 -18.77 <.0001 |
PROC PRINT Report of the Data set from PROC REG 3
_Proc_ _Run_ Model Dependent Variable DF
Reg 1 MODEL1 Loss Intercept 1
Reg 1 MODEL1 Loss Fe 1
Estimate StdErr tValue Probt
129.78660 1.40274 92.52 <.0001
-24.01989 1.27977 -18.77 <.0001 |
PROC PRINT Report of the Data set from PROC GLM 4
_Proc_ _Run_ Dependent Parameter Estimate
GLM 1 Loss Intercept 129.7865993
GLM 1 Loss Fe -24.0198934
StdErr tValue Probt
1.40273671 92.52 <.0001
1.27976715 -18.77 <.0001 |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.