Dear Community, I have read various post about when to use chi-squared test and when to use logistic regression and I have come to the conclusion, that it depends on who you ask. However, I thought I would get the same result independent of what method I decided to use to examine the association between two variables. Now, - that is not the case in my situation. I used the codes to examine the association between the preditive variable community and the criteria variabe MDD (event 1). proc surveylogistic data=dietdivdummy; (This shows no sig. diff.) model mdd (event="1")=community; weight sampwt; run; proc freq data=dietdivdummy; (This shows a sig. diff. between the two communities) tables mdd*community / chisq; exact pchi or; weight sampwt; run; I am still very new in this game so hope someone can explain to me what I am doing wrong. I want to model the determinants of and predict the likelihood of an outcome and therefore will go with the proc surveylogistic methode. But can I trust the outcome? Thanks, Mette
... View more