You are on page 1of 142

ID Age AvPages/WPages/Week Renewed

1 18-24 63.16 12 0
2 18-24 1.45 35 1
3 18-24 98.84 116 1
4 18-24 28.13 37 1
5 18-24 6.95 8 1
6 18-24 16.66 17 0
7 18-24 27.11 32 0
8 18-24 14.09 37 1
9 18-24 12.29 6 1
10 18-24 13.59 29 0
11 25-29 54.84 27 1
12 25-29 34.76 5 1
13 25-29 115.74 109 1
14 25-29 51.08 25 1
15 25-29 30.78 13 0
16 25-29 51.11 16 1
17 25-29 31.53 25 1
18 25-29 38.48 2 0
19 25-29 73.90 58 1
20 25-29 4.95 15 0
21 30-39 39.71 25 1
22 30-39 60.56 34 1
23 30-39 24.10 4 1
24 30-39 93.38 80 1
25 30-39 23.11 2 0
26 30-39 40.72 45 1
27 30-39 19.43 20 0
28 30-39 80.84 52 1
29 30-39 24.86 35 1
30 30-39 34.28 30 1
31 40-49 40.47 14 0
32 40-49 12.72 24 0
33 40-49 16.72 13 0
34 40-49 16.74 30 0
35 40-49 28.36 31 0
36 40-49 33.25 44 1
37 40-49 17.52 23 0
38 40-49 16.09 30 0
39 40-49 18.46 34 0
40 40-49 8.33 20 0
41 50-59 92.88 48 1
42 50-59 50.17 24 1
43 50-59 55.88 64 1
44 50-59 7.75 29 1
45 50-59 8.72 16 0
46 50-59 26.32 20 1
47 50-59 20.83 9 1
48 50-59 3.33 24 0
49 50-59 91.60 80 1
50 50-59 17.27 21 1
51 60+ 76.01 117 1
52 60+ 99.10 118 1
53 60+ 4.53 6 1
54 60+ 12.24 1 0
55 60+ 26.61 11 0
56 60+ 51.27 52 1
57 60+ 9.32 29 1
58 60+ 28.66 5 0
59 60+ 114.47 123 1
60 60+ 11.36 11 0
XLSTAT 2017.5.12345 - Logistic regression - Start time: 20/10/2017 at 17:14:25 / End time: 20/10/2017 at 17:14:26
Response variable(s): Workbook = demoLOG.xls / Sheet = Sheet1 / Range = Sheet1!$E:$E / 60 rows and 1 column
Quantitative: Workbook = demoLOG.xls / Sheet = Sheet1 / Range = Sheet1!$C:$D / 60 rows and 2 columns
Qualitative: Workbook = demoLOG.xls / Sheet = Sheet1 / Range = Sheet1!$B:$B / 60 rows and 1 column
Model: Logit
Response type: Binary
Constraints: a1=0
Confidence interval (%): 95
Stop conditions: Iterations = 100 / Convergence = 0,000001
Maximization of the likelihood function using the Newton-Raphson algorithm

Summary statistics:
Variable CategoriesFrequencies %
Renewed 0 24 40.000
1 36 60.000

Variable Observations
Obs. with Obs.
missing
without
data missingMinimum
data Maximum Mean Std. deviation
AvPages/W 60 0 60 1.450 115.740 37.124 30.074
Pages/Wee 60 0 60 1.000 123.000 33.700 30.620

Variable CategoriesFrequencies %
Age 18-24 10 16.667
25-29 10 16.667
30-39 10 16.667
40-49 10 16.667
50-59 10 16.667
60+ 10 16.667

Correlation matrix:
VariablesAvPages/WeekPages/Week
AvPages/W 1.000 0.798
Pages/Wee 0.798 1.000

Regression of variable Renewed:


Correspondence between the categories of the response variable and the probabilities (Variable Renewed):
CategoriesProbabilities
0 0
1 1

Goodness of fit statistics (Variable Renewed):


Statistic Independent Full
Observatio 60 60
Sum of wei 60.000 60.000
DF 59 52
-2 Log(Like 80.761 46.943
R²(McFadd 0.000 0.419
R²(Cox and 0.000 0.431
R²(Nagelke 0.000 0.582
AIC 82.761 62.943
SBC 84.856 79.698
Iterations 0 7

Test of the null hypothesis H0: Y=0,600 (Variable Renewed):


Statistic DF Chi-square Pr > Chi²
-2 Log(Like 7 33.819 < 0,0001
Score 7 23.816 0.001
Wald 7 12.623 0.082

Type II analysis (Variable Renewed):


Source DF Chi-square (Wald)
Pr > Wald
Chi-square (LR)Pr > LR
AvPages/W 1 0.826 0.363 0.862 0.353
Pages/Wee 1 6.274 0.012 8.424 0.004
Age 5 8.757 0.119 14.261 0.014

Hosmer-Lemeshow test (Variable Renewed):


Statistic Chi-square DF Pr > Chi²
Hosmer-Lem 7.743 8 0.459

Model parameters (Variable Renewed):


Source Value Standard error
Wald Chi-Square
Pr >
Wald
Chi²LowerWald
bound
Upper
(95%)
boundOdds
(95%)
Oddsratio
ratio Lower bound (95%)
Intercept -2.357 1.246 3.579 0.059 -4.798 0.085
AvPages/W 0.023 0.026 0.826 0.363 -0.027 0.074 1.024 0.973
Pages/Wee 0.089 0.036 6.274 0.012 0.019 0.159 1.093 1.020
Age-18-24 0.000 0.000
Age-25-29 0.688 1.206 0.325 0.569 -1.676 3.052 1.989 0.187
Age-30-39 0.963 1.276 0.570 0.450 -1.537 3.464 2.620 0.215
Age-40-49 -2.983 1.377 4.690 0.030 -5.682 -0.283 0.051 0.003
Age-50-59 1.086 1.168 0.864 0.352 -1.203 3.374 2.961 0.300
Age-60+ 0.309 1.264 0.060 0.807 -2.169 2.787 1.362 0.114

Equation of the model (Variable Renewed):


Pred(Renewed) = 1 / (1 + exp(-(-2,35667029957408+2,34995786890216E-02*AvPages/Week+0,089277137742827*Pa

Standardized coefficients (Variable Renewed):


Source Value Standard error
Wald Chi-Square
Pr >
Wald
Chi²LowerWald
bound
Upper
(95%)
bound (95%)
AvPages/W 0.386 0.425 0.826 0.363 -0.447 1.220
Pages/Wee 1.495 0.597 6.274 0.012 0.325 2.664
Age-18-24 0.000 0.000
Age-25-29 0.141 0.248 0.325 0.569 -0.344 0.627
Age-30-39 0.198 0.262 0.570 0.450 -0.316 0.712
Age-40-49 -0.613 0.283 4.690 0.030 -1.168 -0.058
Age-50-59 0.223 0.240 0.864 0.352 -0.247 0.693
Age-60+ 0.063 0.260 0.060 0.807 -0.446 0.573
Stand ardized coefficients

Renewed / Standardized coefficients


(95% conf. interval)
2

Pages/Week
1.5

1
Stand ardized coef
Renewed / Standardized coefficients
(95% conf. interval)
2

Pages/Week
1.5

0.5 AvPages/Week
Age-30-39 Age-50-59
Age-25-29
Age-60+
Age-18-24
0

-0.5
Age-40-49
Variable
-1

Predictions and residuals (Variable Renewed):


Observation Weight Renewed Pred(Renewed)
Independent
Renewed/Weight
Pred(Renewed)/Weight
Std.Std.
residual
residual (Independent)
Obs1 1 0 0.550 0.600 0.000 0.550 -1.105 -1.225
Obs2 1 1 0.690 0.600 1.000 0.690 0.670 0.816
Obs3 1 1 1.000 0.600 1.000 1.000 0.006 0.816
Obs4 1 1 0.833 0.600 1.000 0.833 0.448 0.816
Obs5 1 1 0.186 0.600 1.000 0.186 2.095 0.816
Obs6 1 0 0.390 0.600 0.000 0.390 -0.800 -1.225
Obs7 1 0 0.757 0.600 0.000 0.757 -1.766 -1.225
Obs8 1 1 0.782 0.600 1.000 0.782 0.528 0.816
Obs9 1 1 0.178 0.600 1.000 0.178 2.151 0.816
Obs10 1 0 0.635 0.600 0.000 0.635 -1.318 -1.225
Obs11 1 1 0.884 0.600 1.000 0.884 0.362 0.816
Obs12 1 1 0.400 0.600 1.000 0.400 1.225 0.816
Obs13 1 1 1.000 0.600 1.000 1.000 0.005 0.816
Obs14 1 1 0.854 0.600 1.000 0.854 0.414 0.816
Obs15 1 0 0.554 0.600 0.000 0.554 -1.114 -1.225
Obs16 1 1 0.723 0.600 1.000 0.723 0.619 0.816
Obs17 1 1 0.787 0.600 1.000 0.787 0.521 0.816
Obs18 1 0 0.358 0.600 0.000 0.358 -0.746 -1.225
Obs19 1 1 0.995 0.600 1.000 0.995 0.073 0.816
Obs20 1 0 0.447 0.600 0.000 0.447 -0.899 -1.225
Obs21 1 1 0.855 0.600 1.000 0.855 0.412 0.816
Obs22 1 1 0.955 0.600 1.000 0.955 0.216 0.816
Obs23 1 1 0.385 0.600 1.000 0.385 1.265 0.816
Obs24 1 1 1.000 0.600 1.000 1.000 0.019 0.816
Obs25 1 0 0.338 0.600 0.000 0.338 -0.715 -1.225
Obs26 1 1 0.973 0.600 1.000 0.973 0.167 0.816
Obs27 1 0 0.700 0.600 0.000 0.700 -1.529 -1.225
Obs28 1 1 0.994 0.600 1.000 0.994 0.076 0.816
Obs29 1 1 0.910 0.600 1.000 0.910 0.314 0.816
Obs30 1 1 0.890 0.600 1.000 0.890 0.352 0.816
Obs31 1 0 0.042 0.600 0.000 0.042 -0.208 -1.225
Obs32 1 0 0.052 0.600 0.000 0.052 -0.235 -1.225
Obs33 1 0 0.022 0.600 0.000 0.022 -0.151 -1.225
Obs34 1 0 0.094 0.600 0.000 0.094 -0.322 -1.225
Obs35 1 0 0.130 0.600 0.000 0.130 -0.386 -1.225
Obs36 1 1 0.348 0.600 1.000 0.348 1.370 0.816
Obs37 1 0 0.053 0.600 0.000 0.053 -0.238 -1.225
Obs38 1 0 0.093 0.600 0.000 0.093 -0.319 -1.225
Obs39 1 0 0.134 0.600 0.000 0.134 -0.393 -1.225
Obs40 1 0 0.034 0.600 0.000 0.034 -0.187 -1.225
Obs41 1 1 0.994 0.600 1.000 0.994 0.074 0.816
Obs42 1 1 0.886 0.600 1.000 0.886 0.359 0.816
Obs43 1 1 0.997 0.600 1.000 0.997 0.056 0.816
Obs44 1 1 0.818 0.600 1.000 0.818 0.472 0.816
Obs45 1 0 0.590 0.600 0.000 0.590 -1.199 -1.225
Obs46 1 1 0.756 0.600 1.000 0.756 0.568 0.816
Obs47 1 1 0.505 0.600 1.000 0.505 0.989 0.816
Obs48 1 0 0.721 0.600 0.000 0.721 -1.608 -1.225
Obs49 1 1 1.000 0.600 1.000 1.000 0.018 0.816
Obs50 1 1 0.733 0.600 1.000 0.733 0.604 0.816
Obs51 1 1 1.000 0.600 1.000 1.000 0.006 0.816
Obs52 1 1 1.000 0.600 1.000 1.000 0.004 0.816
Obs53 1 1 0.197 0.600 1.000 0.197 2.019 0.816
Obs54 1 0 0.158 0.600 0.000 0.158 -0.434 -1.225
Obs55 1 0 0.392 0.600 0.000 0.392 -0.802 -1.225
Obs56 1 1 0.978 0.600 1.000 0.978 0.150 0.816
Obs57 1 1 0.681 0.600 1.000 0.681 0.684 0.816
Obs58 1 0 0.283 0.600 0.000 0.283 -0.629 -1.225
Obs59 1 1 1.000 0.600 1.000 1.000 0.003 0.816
Obs60 1 0 0.310 0.600 0.000 0.310 -0.671 -1.225

Classification table for the training sample (Variable Renewed):


from \ to 0 1 Total % correct
0 17 7 24 70.83%
1 6 30 36 83.33%
Total 23 37 60 78.33%

ROC Curve (Variable Renewed):

ROC Curve (AUC=0,899)


1

0.9
Sensitivity

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
1 - Specificity
0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
1 - Specificity

Area under the curve: 0.899

Comparison of the categories of the qualitative variables (Variable Renewed):


Contrast DF Chi-square Pr > Chi²
Age-18-24 1 0.325 0.569
Age-18-24 1 0.570 0.450
Age-18-24 1 4.690 0.030
Age-18-24 1 0.864 0.352
Age-18-24 1 0.060 0.807
Age-25-29 1 0.047 0.829
Age-25-29 1 5.690 0.017
Age-25-29 1 0.097 0.755
Age-25-29 1 0.085 0.771
Age-30-39 1 6.228 0.013
Age-30-39 1 0.008 0.927
Age-30-39 1 0.225 0.635
Age-40-49 1 7.539 0.006
Age-40-49 1 4.186 0.041
Age-50-59 1 0.363 0.547
e: 20/10/2017 at 17:14:26 / Microsoft Excel 16.08528
$E / 60 rows and 1 column
ws and 2 columns
s and 1 column

ariable Renewed):
Odds ratio Upper bound (95%)

1.077
1.172

21.158
31.933
0.753
29.191
16.233

Week+0,089277137742827*Pages/Week+0,687810532044965*Age-25-29+0,963235493141076*Age-30-39-2,98273963998533*Age-40-49
Lower bound
Upper
95%bound 95%
0.073 0.950
0.232 0.943
0.943 1.000
0.456 0.967
0.031 0.621
0.116 0.756
0.381 0.941
0.369 0.957
0.029 0.609
0.260 0.896
0.494 0.983
0.109 0.784
0.953 1.000
0.462 0.975
0.204 0.857
0.306 0.939
0.390 0.955
0.084 0.771
0.794 1.000
0.085 0.876
0.424 0.979
0.575 0.997
0.070 0.838
0.903 1.000
0.055 0.818
0.685 0.998
0.244 0.944
0.754 1.000
0.500 0.990
0.486 0.986
0.003 0.385
0.005 0.355
0.002 0.227
0.011 0.483
0.017 0.569
0.048 0.849
0.006 0.355
0.011 0.480
0.017 0.579
0.003 0.285
0.657 1.000
0.417 0.988
0.857 1.000
0.402 0.968
0.197 0.894
0.349 0.947
0.137 0.868
0.284 0.944
0.905 1.000
0.334 0.938
0.902 1.000
0.911 1.000
0.034 0.632
0.025 0.575
0.090 0.807
0.532 0.999
0.193 0.950
0.052 0.739
0.923 1.000
0.068 0.736
273963998533*Age-40-49+1,08553377953718*Age-50-59+0,308921135449401*Age-60+)))

You might also like