You are on page 1of 3

Logistic Regression

Dependent Variable Encoding Original Value No Yes Internal Value 0 1 Categorical Variables Codings Parameter coding Employment Gender unemployed employed Male Female Frequency 37 4 4 37 (1) 1.000 .000 1.000 .000

Block 0: Beginning Block


Classification Table(a,b) Observed Predicted Practice (Is Px Compliant) No Step 0 Practice (Is Px Compliant) No Yes Overall Percentage a Constant is included in the model. b The cut value is .500 0 0 Yes 14 27

Percentage Correct .0 100.0 65.9

Block 1: Method = Enter


Model Summary -2 Log likelihood 40.385 Cox & Snell R Square .258 Nagelkerke R Square .357

Step 1

Hosmer and Lemeshow Test Step 1 Chi-square 5.379 df 8 Sig. .716

Classification Table(a)

Observed

Predicted Practice (Is Px Compliant) No Yes 6 4 8 23 No Yes

Percentage Correct 42.9 85.2 70.7

Step 1

Practice (Is Px Compliant)

Overall Percentage a The cut value is .500 Variables in the Equation

95.0% C.I.for EXP(B) Step 1(a) AGE GEN_REC (1) EMP_REC (1) DM_YR DM_REL EDUC_AT T KNOWL_S C ATT_SC Constant B -.086 -.933 2.588 .144 -.874 1.019 -.534 -.015 S.E. .052 1.676 1.426 .074 1.088 .694 .247 .031 Wald 2.760 .310 3.295 3.729 .645 2.156 4.671 .239 df 1 1 1 1 1 1 1 1 Sig. .097 .578 .069 .053 .422 .142 .031 .625 Exp(B) .918 .393 13.302 1.154 .417 2.769 .586 .985 Lower .829 .015 .814 .998 .050 .711 .361 .926 Upper 1.016 10.497 217.476 1.336 3.518 10.785 .951 1.047

6.161 4.715 1.708 1 .191 474.013 a Variable(s) entered on step 1: AGE, GEN_REC, EMP_REC, DM_YR, DM_REL, EDUC_ATT, KNOWL_SC, ATT_SC.

Note: Only Knowledge Score is statistically significant in predicting Compliance (the rest are may be due to chance): OR = 0.586, 95% CI: 0.361 0.951, p = 0.031. Interpretation of OR: for every increase in the Knowledge score by 1 point, theres an increase of odds of having compliance by 0.586.

Heres my own re-coding of the variables:

Variables: Age Gender [Gen_Rec] (0 = male, 1 = female) Employment [Emp_Rec] (I used Employment instead of Occupation) (0 = unemployed, 1 = employed) DM_yr = Number of years with DM type 2 (I used DM_yr instead of Diabnumyears) DM_rel = Does Px have Relatives with DM type 2? (0 = no, 1 = yes) (I used DM_rel instead of Diabrel) Educ_att = Educational attainment (0 = none, 1 = elementary, 2 = high school, 3 = college) (I used Educ_att instead of Edattain) Knowl_Sc = total score gotten in the knowledge test (I used Knowl_Sc instead of Knowledgeover) Att_Sc = total score gotten in the attitude test (I used Att_Sc instead of Attitudeover)