PROC REG Conclusions
Getting Correct Results from PROC REG
Nate Derby
Stakana Analytics Seattle, WA, USA
SUCCESS 3/12/15
Nate Derby Getting Correct Results from PROC REG 1 / 29
Getting Correct Results from PROC REG Nate Derby Stakana Analytics - - PowerPoint PPT Presentation
PROC REG Conclusions Getting Correct Results from PROC REG Nate Derby Stakana Analytics Seattle, WA, USA SUCCESS 3/12/15 Getting Correct Results from PROC REG Nate Derby 1 / 29 PROC REG Conclusions Outline 1 PROC REG Basics Checking
PROC REG Conclusions
Nate Derby Getting Correct Results from PROC REG 1 / 29
PROC REG Conclusions
Nate Derby Getting Correct Results from PROC REG 2 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 3 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
20 21 22 23 24 25 26 27 28 29 30 31
194 198 202 206 210 214
Nate Derby Getting Correct Results from PROC REG 4 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 5 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Pressure (Hg) 20 21 22 23 24 25 26 27 28 29 30 31 Boiling Point (°F) 194 198 202 206 210 214
Nate Derby Getting Correct Results from PROC REG 6 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Graph of Fitted Line
Nate Derby Getting Correct Results from PROC REG 7 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Graph of Fitted Line
Nate Derby Getting Correct Results from PROC REG 8 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 9 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Residual
0.0 0.2 0.4 0.6 0.8 Boiling Point (°F) 194 198 202 206 210 214
Nate Derby Getting Correct Results from PROC REG 10 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 11 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 12 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
100 x Log Pressure (Hg) 130 133 135 138 140 143 145 148 150 Boiling Point (°F) 194 198 202 206 210 214
Nate Derby Getting Correct Results from PROC REG 13 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Residual
0.00 0.25 0.50 0.75 1.00 1.25 1.50 Boiling Point (°F) 194 198 202 206 210 214
Nate Derby Getting Correct Results from PROC REG 14 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 15 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 16 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Residual
0.0 0.2 0.4 0.6 0.8 Normal Quantile
1 2 3
Nate Derby Getting Correct Results from PROC REG 17 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Residual
0.00 0.25 0.50 0.75 1.00 1.25 1.50 Normal Quantile
1 2 3
Nate Derby Getting Correct Results from PROC REG 18 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
The REG Procedure Model: MODEL2 Dependent Variable: hlogpress 100 x Log Pressure (Hg) Number of Observations Read 17 Number of Observations Used 17 Analysis of Variance Sum of Mean Source DF Squares Square F Value Pr > F Model 1 425.63910 425.63910 2962.79 <.0001 Error 15 2.15493 0.14366 Corrected Total 16 427.79402 Root MSE 0.37903 R-Square 0.9950 Dependent Mean 139.60529 Adj R-Sq 0.9946 Coeff Var 0.27150 Parameter Estimates Parameter Standard Variable Label DF Estimate Error t Value Pr > |t| Intercept Intercept 1
3.34020
<.0001 temp Boiling Point (F) 1 0.89549 0.01645 54.43 <.0001 Nate Derby Getting Correct Results from PROC REG 19 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Gurr's Index (1995)
3 5 8 10 Log GDP (1985) 6.00 6.50 7.00 7.50 8.00 8.50 9.00 9.50 10.00
Nate Derby Getting Correct Results from PROC REG 20 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
The REG Procedure Model: MODEL1 Dependent Variable: Gurr Index (1995) Number of Observations Read 112 Number of Observations Used 111 Number of Observations with Missing Values 1 Analysis of Variance Sum of Mean Source DF Squares Square F Value Pr > F Model 1 534.76792 534.76792 12.31 0.0007 Error 109 4734.97983 43.44018 Corrected Total 110 5269.74775 Root MSE 6.59092 R-Square 0.1015 Dependent Mean 3.50450 Adj R-Sq 0.0932 Coeff Var 188.06986 Parameter Estimates Parameter Standard Variable Label DF Estimate Error t Value Pr > |t| Intercept Intercept 1
4.74073
0.0072 lgdp Log GDP (1985) 1 2.06913 0.58973 3.51 0.0007 Nate Derby Getting Correct Results from PROC REG 21 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Shipments 39,000 40,000 41,000 42,000 43,000 44,000 Orders 33,000 34,000 35,000 36,000 37,000 38,000 39,000 40,000 41,000
Nate Derby Getting Correct Results from PROC REG 22 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Residual
500 1000 1500 2000 Orders 33,000 34,000 35,000 36,000 37,000 38,000 39,000 40,000 41,000
Nate Derby Getting Correct Results from PROC REG 23 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
The REG Procedure Model: MODEL1 Dependent Variable: shipments Shipments Number of Observations Read 54 Number of Observations Used 53 Number of Observations with Missing Values 1 Analysis of Variance Sum of Mean Source DF Squares Square F Value Pr > F Model 1 38818277 38818277 70.16 <.0001 Error 51 28218196 553298 Corrected Total 52 67036473 Root MSE 743.84001 R-Square 0.5791 Dependent Mean 41527 Adj R-Sq 0.5708 Coeff Var 1.79124 Parameter Estimates Parameter Standard Variable Label DF Estimate Error t Value Pr > |t| Intercept Intercept 1 20966 2456.79440 8.53 <.0001
Orders 1 0.56613 0.06759 8.38 <.0001 Nate Derby Getting Correct Results from PROC REG 24 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Nate Derby Getting Correct Results from PROC REG 25 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
Residual
500 1000 1500 2000 Date 07/1983 02/1984 08/1984 03/1985 09/1985 04/1986 10/1986 05/1987 12/1987 06/1988
Nate Derby Getting Correct Results from PROC REG 26 / 29
PROC REG Conclusions Basics Checking Assumptions Understanding the Output
32,000 34,000 36,000 38,000 40,000 42,000 44,000
01/84 05/84 09/84 01/85 05/85 09/85 01/86 05/86 09/86 01/87 05/87 09/87 01/88 05/88
Nate Derby Getting Correct Results from PROC REG 27 / 29
PROC REG Conclusions
Nate Derby Getting Correct Results from PROC REG 28 / 29
Appendix
Nate Derby Getting Correct Results from PROC REG 29 / 29