You are on page 1of 5

http://www.statistikian.

com 201
5
http://www.statistikian.com
By: Anwar Hidayat
SAVE OUTFILE='D:\Blog\Regresi Logistik\Regresi Logistik.sav' /COMPRESSED.
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).
Logistic Regression
Notes
Output Created
Comments
Input

Missing Value Handling


Syntax

Resources
Variables Created or Modified

23-Feb-2015 23:25:11
Data

D:\Blog\Regresi Logistik\Regresi
Logistik.sav
DataSet0
<none>
<none>
<none>

Active Dataset
Filter
Weight
Split File
N of Rows in Working Data File
200
Definition of Missing
User-defined missing values are treated as
missing
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).
Processor Time
Elapsed Time
PRE_1

00:00:00.031
00:00:00.021
Predicted probability

PGR_1

Predicted group

RES_1

Difference between observed and predicted


probabilities

SRE_1

Standard residual

[DataSet0] D:\Blog\Regresi Logistik\Regresi Logistik.sav

http://www.statistikian.com

http://www.statistikian.com 201
5
Case Processing Summary
Unweighted Cases

Selected Cases

Percent

Included in Analysis
Missing Cases
Total

Unselected Cases
Total

200

100.0

.0

200
0
200

100.0
.0
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


Mengalami Kanker

0
1

Block 0: Beginning Block


Iteration Historya,b,c
Coefficients
Iteration
Step 0

-2 Log likelihood

Constant

276.939

.080

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
Kanker

Observed
Step 0

Kanker Paru

Mengalami
Kanker

Percentage Correct

Tidak Mengalami Kanker

96

.0

Mengalami Kanker

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
Step 0

Constant

S.E.
.080

Wald
.142

df

.320

http://www.statistikian.com

Sig.
1

Exp(B)
.572

1.083

http://www.statistikian.com 201
5
Variables not in the Equation
Score
Step 0

Variables

df

Sig.

X1

61.191

.000

X2

50.261

.000

Overall Statistics

64.605

.000

Block 1: Method = Enter


Iteration Historya,b,c,d
Coefficients
Iteration
Step 1

-2 Log likelihood

Constant

X1

X2

208.765

-1.077

1.621

.790

207.580

-1.208

1.823

.962

207.575

-1.214

1.837

.973

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
Step 1

df

Sig.

Step

69.364

.000

Block

69.364

.000

Model

69.364

.000

Model Summary
Step

-2 Log likelihood

Cox & Snell R


Square

207.575a

Nagelkerke R
Square

.293

.391

a. Estimation terminated at iteration number 4 because parameter


estimates changed by less than .001.

Hosmer and Lemeshow Test


Step

Chi-square

13.671

df

Sig.
1

.000

http://www.statistikian.com

http://www.statistikian.com 201
5
Contingency Table for Hosmer and Lemeshow Test
Kanker Paru = Tidak Mengalami
Kanker
Observed
Step 1

Kanker Paru = Mengalami Kanker

Expected

Observed

Total

Expected

66

70.160

25

20.840

91

20

11.680

13.320

25

10

14.160

74

69.840

84

Classification Tablea
Predicted
Kanker Paru
Tidak Mengalami
Kanker

Observed
Step 1

Kanker Paru

Mengalami
Kanker

Percentage Correct

Tidak Mengalami Kanker

78

18

81.2

Mengalami Kanker

27

77

74.0

Overall Percentage

77.5

a. The cut value is .500

Variables in the Equation

95.0% C.I.for EXP


B
Step 1

S.E.

Wald

df

.455

16.301

.000

6.277

2.573

X2

.973

.452

4.638

.031

2.645

1.091

-1.214

.240

25.578

.000

.297

Correlation Matrix
Constant

X1

X2

Constant

1.000

-.255

-.333

X1

-.255

1.000

-.643

X2

-.333

-.643

1.000

Step number: 1
Observed Groups and Predicted Probabilities

Lower

1.837

a. Variable(s) entered on step 1: X1, X2.

160

Exp(B)

X1
Constant

Step 1

Sig.

http://www.statistikian.com

Upp

http://www.statistikian.com 201
5

R 120

E 80
M
M

T
M

T
M

T
M

40
T
M

T
M

T
M

T
T
T
T

Predicted

Prob: 0
.1
.2
.3
.4
.5
.6
.7
.8
.9
1
Group: TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
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.
SAVE OUTFILE='D:\Blog\Regresi Logistik\Regresi Logistik.sav' /COMPRESSED.

http://www.statistikian.com

You might also like