0% found this document useful (0 votes)
22 views6 pages

Logistic

The document presents the results of a logistic regression analysis with 40 cases, examining the relationship between two independent variables (X1 and X2) and a dependent variable (Y). The analysis shows that the model has an overall accuracy of 82.5% in predicting the outcome, with X1 being statistically significant (p = 0.049) while X2 is not (p = 0.227). The Hosmer and Lemeshow test indicates a good fit for the model (p = 0.203).
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views6 pages

Logistic

The document presents the results of a logistic regression analysis with 40 cases, examining the relationship between two independent variables (X1 and X2) and a dependent variable (Y). The analysis shows that the model has an overall accuracy of 82.5% in predicting the outcome, with X1 being statistically significant (p = 0.049) while X2 is not (p = 0.227). The Hosmer and Lemeshow test indicates a good fit for the model (p = 0.203).
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 6

LOGISTIC REGRESSION VARIABLES Y

/METHOD=ENTER X1 X2
/CONTRAST (X1)=Indicator
/CLASSPLOT
/CASEWISE
/PRINT=GOODFIT

/CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).

Logistic Regression

Notes

Output Created 05-Dec-2024 15:05:21

Comments

Input Active Dataset DataSet0

Filter <none>

Weight <none>

Split File <none>

N of Rows in Working Data File 40

Missing Value Handling Definition of Missing User-defined missing values are treated as
missing

Syntax LOGISTIC REGRESSION VARIABLES Y


/METHOD=ENTER X1 X2
/CONTRAST (X1)=Indicator
/CLASSPLOT
/CASEWISE
/PRINT=GOODFIT
/CRITERIA=PIN(0.05) POUT(0.10)
ITERATE(20) CUT(0.5).

Resources Processor Time 00:00:00.031

Elapsed Time 00:00:00.031

[DataSet0]

Case Processing Summary

Unweighted Casesa N Percent

Selected Cases Included in Analysis 40 100.0

Missing Cases 0 .0

Total 40 100.0

Unselected Cases 0 .0
Total 40 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 lulus 0

Nilai lulus 1

Categorical Variables Codings

Parameter coding

Frequency (1)

Etika Sopan 19 1.000

Kurang sopan 21 .000

Block 0: Beginning Block

Classification Tablea,b

Predicted

Kelulusan

Observed Tidak lulus Nilai lulus Percentage Correct

Step 0 Kelulusan Tidak lulus 0 15 .0

Nilai lulus 0 25 100.0

Overall Percentage 62.5

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 .511 .327 2.446 1 .118 1.667


Variables not in the Equation

Score df Sig.

Step 0 Variables X1(1) 10.165 1 .001

X2 7.765 1 .005

Overall Statistics 11.449 2 .003

Block 1: Method = Enter

Omnibus Tests of Model Coefficients

Chi-square df Sig.

Step 1 Step 12.204 2 .002

Block 12.204 2 .002

Model 12.204 2 .002

Model Summary

Cox & Snell R Nagelkerke R


Step -2 Log likelihood Square Square

1 40.721a .263 .358

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 7.247 5 .203

Contingency Table for Hosmer and Lemeshow Test

Kelulusan = Tidak lulus Kelulusan = Nilai lulus

Observed Expected Observed Expected Total

Step 1 1 3 3.848 2 1.152 5

2 6 4.108 0 1.892 6

3 2 1.756 1 1.244 3
4 1 1.914 3 2.086 4

5 0 1.421 6 4.579 6

6 2 1.490 9 9.510 11

7 1 .462 4 4.538 5

Classification Tablea

Predicted

Kelulusan

Observed Tidak lulus Nilai lulus Percentage Correct

Step 1 Kelulusan Tidak lulus 11 4 73.3

Nilai lulus 3 22 88.0

Overall Percentage 82.5

a. The cut value is .500

Variables in the Equation

B S.E. Wald df Sig. Exp(B)

Step 1a X1(1) -1.767 .897 3.881 1 .049 .171

X2 .431 .357 1.457 1 .227 1.539

Constant .130 1.483 .008 1 .930 1.139

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

Step number: 1

Observed Groups and Predicted Probabilities

16 ┼ ┼
│ │
│ │
F │ │
R 12 ┼ ┼
E │ N │
Q │ N │
U │ N │
E 8 ┼ N ┼
N │ N │
C │ T N │
Y │ N T N N │
4 ┼ N T N N N N ┼
│ T T N N N N N │
│ T T T N N T N │
│ T T T T N N N T T │
Predicted ─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼──────────
Prob: 0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1
Group: TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

Predicted Probability is of Membership for Nilai lulus


The Cut Value is .50
Symbols: T - Tidak lulus
N - Nilai lulus

Each Symbol Represents 1 Case.

Casewise List

Observed Temporary Variable

Case Selected Statusa Kelulusan Predicted Predicted Group Resid ZResid

1 S T .230 T -.230 -.547

2 S T .230 T -.230 -.547

3 S T .315 T -.315 -.679

4 S T .315 T -.315 -.679

5 S T .315 T -.315 -.679

6 S T .315 T -.315 -.679

7 S T .415 T -.415 -.842

8 S N .626 N .374 .772

9 S T .315 T -.315 -.679

10 S T .315 T -.315 -.679

11 S T .230 T -.230 -.547

12 S N .522 N .478 .958

13 S N** .230 T .770 1.828

14 S N** .415 T .585 1.188

15 S T** .522 N -.522 -1.044

16 S N .908 N .092 .319

17 S N .806 N .194 .491

18 S N .865 N .135 .396

19 S N .908 N .092 .319

20 S N .865 N .135 .396

21 S N .865 N .135 .396

22 S N .865 N .135 .396

23 S N .806 N .194 .491

24 S N .865 N .135 .396

25 S N .908 N .092 .319

26 S N .806 N .194 .491


27 S N .865 N .135 .396

28 S N .729 N .271 .609

29 S N .865 N .135 .396

30 S T** .865 N -.865 -2.526

31 S N .522 N .478 .958

32 S N** .230 T .770 1.828

33 S T .415 T -.415 -.842

34 S N .522 N .478 .958

35 S T** .908 N -.908 -3.133

36 S N .806 N .194 .491

37 S N .865 N .135 .396

38 S N .908 N .092 .319

39 S T** .865 N -.865 -2.526

40 S N .865 N .135 .396

a. S = Selected, U = Unselected cases, and ** = Misclassified cases.

You might also like