Sie sind auf Seite 1von 8

Yushun Luo

999902119

ss2127

1. Regression Analysis: smoke versus educ, interaction(es)


The regression equation is
smoke = 0.236 - 0.0183 educ + 0.0834 interaction(es)
Predictor
Coef SE Coef
T
P
Constant
0.23614 0.01274 18.54 0.000
educ
-0.018331 0.001007 -18.21 0.000
interaction(es) 0.0834152 0.0004240 196.74 0.000
S = 0.0697482 R-Sq = 97.3% R-Sq(adj) = 97.3%
Analysis of Variance
Source
DF
SS
MS
F
P
Regression
2 198.693 99.346 20421.41 0.000
Residual Error 1112 5.410
0.005
Total
1114 204.102
Source
DF Seq SS
educ
1 10.396
interaction(es) 1 188.296

Normplot of Residuals for smoke


Normal Probab ility Plot
(response is smoke)
99.99

99

Percent

95
80
50
20
5
1

0.01

-0.4

-0.2

0.0

Residuals vs Fits for smoke

0.2
Residual

0.4

0.6

0.8

Versus Fits
(response is smoke)
0.8
0.6

Residual

0.4
0.2
0.0
-0.2
-0.4
0.0

0.2

0.4

0.6
0.8
Fitted Value

1.0

1.2

1.4

2. Binary Logistic Regression: bwt versus id, black, educ, smoke, gest
ation
Link Function: Logit
Response Information
Variable Value Count
bwt
1
108 (Event)
0
1007
Total 1115
Logistic Regression Table
Odds
95% CI
Predictor
Coef SE Coef
Z
P Ratio Lower Upper
Constant
26.7711 2.98044 8.98 0.000
id
-0.0008376 0.0009129 -0.92 0.359 1.00 1.00 1.00
black
1
0.339444 0.316713 1.07 0.284 1.40 0.75 2.61

educ
0.0629875 0.147636 0.43 0.670 1.07 0.80 1.42
smoke
1
0.762192 0.293792 2.59 0.009 2.14 1.20 3.81
gestation -0.790519 0.0707404 -11.17 0.000 0.45 0.39 0.52
Log-Likelihood = -192.375
Test that all slopes are zero: G = 324.681, DF = 5, P-Value = 0.000
Goodness-of-Fit Tests
Method
Chi-Square DF
P
Pearson
1097.33 1109 0.593
Deviance
384.75 1109 1.000
Hosmer-Lemeshow
9.20
8 0.326
Table of Observed and Expected Frequencies:
(See Hosmer-Lemeshow Test for the Pearson Chi-Square Statistic)
Group
Value
1
2
3
4
5
6
7
8
9 10
1
Obs
1
1
0
0
5
4
5
6 12 74
Exp 0.4 0.9 1.3 1.6 2.3 3.2 4.8 7.8 15.3 70.4
0
Obs 110 111 111 112 106 108 106 106 99 38
Exp 110.6 111.1 109.7 110.4 108.7 108.8 106.2 104.2 95.7 41.6
Total 111 112 111 112 111 112 111 112 111 112
Value Total
1
Obs 108
Exp
0
Obs 1007
Exp
Total 1115
Measures of Association:
(Between the Response Variable and Predicted Probabilities)
Pairs
Number Percent Summary Measures
Concordant 98425
90.5 Somers' D
0.82
Discordant 9647
8.9 Goodman-Kruskal Gamma 0.82
Ties
684
0.6 Kendall's Tau-a
0.14
Total
108756 100.0

Delta Chi-Square versus P

Delta Chi-Square ve rsus Probability


200

Delta Chi-Square

150

100

50

0
0.0

0.2

0.4
0.6
Probability

0.8

1.0

Delta Chi-Square versus Hi


Delta Chi-Squar e versus Leverage
200

Delta Chi-Square

150

100

50

0
0.00

0.05

0.10
Leverage

0.15

0.20

Binary Logistic Regression: bwt versus black, smoke, gestation


Link Function: Logit
Response Information
Variable Value Count
bwt
1
108 (Event)
0
1007
Total 1115
Logistic Regression Table
Odds
95% CI
Predictor
Coef SE Coef
Z
P Ratio Lower Upper
Constant
27.0948 2.67085 10.14 0.000
black
1
0.379868 0.314495 1.21 0.227 1.46 0.79 2.71
smoke
1
0.829428 0.285045 2.91 0.004 2.29 1.31 4.01
gestation -0.791623 0.0708146 -11.18 0.000 0.45 0.39 0.52
Log-Likelihood = -193.072
Test that all slopes are zero: G = 323.286, DF = 3, P-Value = 0.000
Goodness-of-Fit Tests
Method
Chi-Square DF
P
Pearson
58.5948 61 0.564
Deviance
48.3126 61 0.881
Hosmer-Lemeshow
5.7736 6 0.449
Table of Observed and Expected Frequencies:
(See Hosmer-Lemeshow Test for the Pearson Chi-Square Statistic)
Group
Value
1
2
3
4
5
6
7
8 Total
1
Obs
2
0
2
7
8
12 63 14 108
Exp 0.7 1.5 2.3 5.7 10.2 14.8 58.7 14.0
0
Obs 158 150 155 201 181 114 48
0 1007
Exp 159.3 148.5 154.7 202.3 178.8 111.2 52.3 0.0
Total 160 150 157 208 189 126 111 14 1115
Measures of Association:
(Between the Response Variable and Predicted Probabilities)
Pairs
Number Percent Summary Measures
Concordant 97460
89.6 Somers' D
0.81
Discordant 8955
8.2 Goodman-Kruskal Gamma 0.83
Ties
2341
2.2 Kendall's Tau-a
0.14
Total
108756 100.0

Delta Chi-Square versus P


Delta Chi-Square ve rsus Probability
12

Delta Chi-Square

10
8
6
4
2
0
0.0

0.2

0.4
0.6
Probability

0.8

1.0

Delta Chi-Square versus Hi


Delta Chi-Squar e versus Leverage
12

Delta Chi-Square

10
8
6
4
2
0
0.00

0.05

0.10

0.15
Leverage

0.20

0.25

0.30

3. General Regression Analysis: s versus t, u, v, w, x


Coefficients
Term
Coef SE Coef
T
P
VIF
Constant 3.45843 3.73602 0.92570 0.357
t
-1.05063 1.02027 -1.02976 0.306 44.5243
u
0.35140 0.23052 1.52438 0.132 3.7667
v
-0.83644 0.85412 -0.97930 0.331 3.9722
w
-1.21917 1.20575 -1.01113 0.315 44.4759
x
-0.06319 0.16889 -0.37414 0.709 1.0465

General Regression Analysis: t versus u, v, w, x, s


Coefficients
Term
Coef SE Coef
T
P
VIF
Constant 0.24027 0.415857 0.5778 0.565
u
0.02119 0.025843 0.8200 0.415 3.84680
v
-0.05715 0.095118 -0.6008 0.550 4.00290
w
-1.16675 0.021220 -54.9842 0.000 1.11930
x
-0.01423 0.018682 -0.7619 0.448 1.04059
s
-0.01293 0.012556 -1.0298 0.306 1.03454

General Regression Analysis: u versus v, w, x, s, t


Coefficients
Term
Coef SE Coef
T
P
VIF
Constant -13.4720 0.995553 -13.5322 0.000
v
3.1238 0.220223 14.1848 0.000 1.1131
w
0.3077 0.590135 0.5215 0.604 44.9078
x
-0.0263 0.082281 -0.3193 0.750 1.0470
s
0.0834 0.054688 1.5244 0.132 1.0181
t
0.4085 0.498184 0.8200 0.415 44.7467

General Regression Analysis: v versus w, x, s, t, u


Coefficients
Term
Coef SE Coef
T
P
VIF
Constant 4.36478 0.027060 161.300 0.000
w
-0.02669 0.160913 -0.166 0.869 45.0503
x
-0.01274 0.022368 -0.569 0.571 1.0440
s
-0.01471 0.015018 -0.979 0.331 1.0359
t
-0.08165 0.135898 -0.601 0.550 44.9268
u
0.23152 0.016322 14.185 0.000 1.0740

General Regression Analysis: w versus x, s, t, u, v


Coefficients
Term

Coef SE Coef

VIF

Constant 0.044989 0.352694 0.1276 0.899


x
-0.011385 0.015819 -0.7197 0.474 1.04142
s
-0.010748 0.010630 -1.0111 0.315 1.03505
t
-0.835795 0.015201 -54.9842 0.000 1.12106
u
0.011435 0.021929 0.5215 0.604 3.86673
v
-0.013382 0.080679 -0.1659 0.869 4.02023

General Regression Analysis: x versus s, t, u, v, w


Coefficients
Term
Coef SE Coef
T
P
VIF
Constant 2.06658 2.52167 0.819530 0.415
s
-0.02872 0.07676 -0.374135 0.709 1.0469
t
-0.52564 0.68995 -0.761862 0.448 44.7997
u
-0.05033 0.15763 -0.319308 0.750 3.8753
v
-0.32920 0.57817 -0.569380 0.571 4.0048
w
-0.58695 0.81551 -0.719738 0.474 44.7652

Das könnte Ihnen auch gefallen