You are on page 1of 6

Latihan di kelas

Logistic Regression

Notes
Output Created 28-NOV-2023 11:01:22
Comments
Input Data D:\Kuliah\UB\06. Aplikasi
Komputer Statistik\Sesi 14\
latihan kelas.sav
Active Dataset DataSet3
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 200
Missing Value Handling Definition of Missing User-defined missing values are
treated as missing
Syntax LOGISTIC REGRESSION
VARIABLES Y
/METHOD=ENTER X1 X2
/SAVE=PRED PGROUP
RESID SRESID
/CLASSPLOT
/CASEWISE OUTLIER(2)
/PRINT=GOODFIT CORR
ITER(1) CI(95)
/CRITERIA=PIN(0.05)
POUT(0.10) ITERATE(20)
CUT(0.5).
Resources Processor Time 00:00:00.03
Elapsed Time 00:00:01.34
Variables Created or Modified PRE_1 Predicted probability
PGR_1 Predicted group
RES_1 Difference between observed
and predicted probabilities
SRE_1 Standard residual
[DataSet3] D:\Kuliah\UB\06. Aplikasi Komputer Statistik\Sesi 14\latihan
kelas.sav

Case Processing Summary


a
Unweighted Cases N Percent
Selected Cases Included in Analysis 200 100.0
Missing Cases 0 .0
Total 200 100.0
Unselected Cases 0 .0
Total 200 100.0
a. If weight is in effect, see classification table for the total number of
cases.

Dependent Variable Encoding


Original Value Internal Value
Tidak mengalami kanker 0
Mengalami kanker 1

Block 0: Beginning Block

Iteration Historya,b,c
Coefficients
Iteration -2 Log likelihood Constant
Step 0 1 276.939 .080
2 276.939 .080
a. Constant is included in the model.
b. Initial -2 Log Likelihood: 276.939
c. Estimation terminated at iteration number 2 because
parameter estimates changed by less than .001.
Classification Tablea,b
Predicted
Kanker Paru
Tidak mengalami Mengalami Percentage
Observed kanker kanker Correct
Step 0 Kanker Paru Tidak mengalami kanker 0 96 .0
Mengalami kanker 0 104 100.0
Overall Percentage 52.0
a. Constant is included in the model.
b. The cut value is .500

Variables in the Equation


B S.E. Wald df Sig. Exp(B)
Step 0 Constant .080 .142 .320 1 .572 1.083

Variables not in the Equation


Score df Sig.
Step 0 Variables Merokok 61.191 1 .000
Riwayat Keluarga 50.261 1 .000
Overall Statistics 64.605 2 .000

Block 1: Method = Enter

Iteration Historya,b,c,d
Coefficients
Iteration -2 Log likelihood Constant Merokok Riwayat Keluarga
Step 1 1 208.765 -1.077 1.621 .790
2 207.580 -1.208 1.823 .962
3 207.575 -1.214 1.837 .973
4 207.575 -1.214 1.837 .973
a. Method: Enter
b. Constant is included in the model.
c. Initial -2 Log Likelihood: 276.939
d. Estimation terminated at iteration number 4 because parameter estimates changed
by less than .001.

Omnibus Tests of Model Coefficients


Chi-square df Sig.
Step 1 Step 69.364 2 .000
Block 69.364 2 .000
Model 69.364 2 .000

Model Summary
Cox & Snell R Nagelkerke R
Step -2 Log likelihood Square Square
a
1 207.575 .293 .391
a. Estimation terminated at iteration number 4 because parameter
estimates changed by less than .001.

Hosmer and Lemeshow Test


Step Chi-square df Sig.
1 13.671 1 .000

Contingency Table for Hosmer and Lemeshow Test


Kanker Paru = Tidak mengalami
kanker Kanker Paru = Mengalami kanker
Observed Expected Observed Expected Total
Step 1 1 66 70.160 25 20.840 91
2 20 11.680 5 13.320 25
3 10 14.160 74 69.840 84

Classification Tablea
Observed Predicted
Kanker Paru
Tidak mengalami Mengalami Percentage
kanker kanker Correct
Step 1 Kanker Paru Tidak mengalami kanker 78 18 81.3
Mengalami kanker 27 77 74.0
Overall Percentage 77.5
a. The cut value is .500

Variables in the Equation


95% C.I.for E
B S.E. Wald df Sig. Exp(B) Lower
a
Step 1 Merokok 1.837 .455 16.301 1 .000 6.277 2.573
Riwayat Keluarga .973 .452 4.638 1 .031 2.645 1.091
Constant -1.214 .240 25.578 1 .000 .297
a. Variable(s) entered on step 1: Merokok, Riwayat Keluarga.

Correlation Matrix
Constant Merokok Riwayat Keluarga
Step 1 Constant 1.000 -.255 -.333
Merokok -.255 1.000 -.643
Riwayat Keluarga -.333 -.643 1.000

Step number: 1

Observed Groups and Predicted Probabilities

160 +
+
I
I
I
I
F I
I
R 120 +
+
E I
I
Q I
I
U I M
I
E 80 + M
M +
N I T
M I
C I T
M I
Y I T
M I
40 + T
M +
I T
M I
I T
M I
I T T T
T I
Predicted ---------+---------+---------+---------+---------+---------
+---------+---------+---------+----------
Prob:
0 .1 .2 .3 .4 .5 .6 .7
.8 .9 1
Group:
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMM

Predicted Probability is of Membership for Mengalami kanker


The Cut Value is .50
Symbols: T - Tidak mengalami kanker
M - Mengalami kanker
Each Symbol Represents 10 Cases.

Casewise Lista

a. The casewise plot is not


produced because no
outliers were found.

You might also like