<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Different results proc survey logistic and proc freq (chisq) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-proc-survey-logistic-and-proc-freq-chisq/m-p/413374#M67462</link>
    <description>&lt;P&gt;Logistic regression assumes a function&amp;nbsp;of the mean of the response variable is assumed to be linearly related to the explanatory variables.&lt;/P&gt;
&lt;P&gt;Since you are not showing any complex sample design elements in the surveylogistic code why are you using surveylogistic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chi-square tests are for homogeneity or independence or measures of association. So your test is asking "are the variables associated", not "how does a change is one variable relate to a change in the other".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also weight has somewhat different meaning between the two procedures.&lt;/P&gt;
&lt;P&gt;Proc freq: If you use a WEIGHT statement, PROC FREQ assumes that an observation represents &lt;SPAN class=" AAmathtext"&gt;n&lt;/SPAN&gt; observations, which will effectively change the sample size used for calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surveylogistic weight variable contains sampling weights, which are not the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 15:26:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-11-14T15:26:31Z</dc:date>
    <item>
      <title>Different results proc survey logistic and proc freq (chisq)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-proc-survey-logistic-and-proc-freq-chisq/m-p/413263#M67456</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the codes to examine the association between the preditive variable community and the criteria variabe MDD (event 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data=dietdivdummy;&amp;nbsp; (This shows no sig. diff.)&lt;BR /&gt;model mdd (event="1")=community;&lt;BR /&gt;weight sampwt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=dietdivdummy;&amp;nbsp;&amp;nbsp; (This shows a sig. diff. between the two communities)&lt;BR /&gt;tables mdd*community / chisq;&lt;BR /&gt;exact pchi or;&lt;BR /&gt;weight sampwt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still very new in this game so hope someone can explain to me what I am doing wrong.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mette&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-proc-survey-logistic-and-proc-freq-chisq/m-p/413263#M67456</guid>
      <dc:creator>MetteSP</dc:creator>
      <dc:date>2017-11-14T10:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Different results proc survey logistic and proc freq (chisq)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-proc-survey-logistic-and-proc-freq-chisq/m-p/413374#M67462</link>
      <description>&lt;P&gt;Logistic regression assumes a function&amp;nbsp;of the mean of the response variable is assumed to be linearly related to the explanatory variables.&lt;/P&gt;
&lt;P&gt;Since you are not showing any complex sample design elements in the surveylogistic code why are you using surveylogistic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chi-square tests are for homogeneity or independence or measures of association. So your test is asking "are the variables associated", not "how does a change is one variable relate to a change in the other".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also weight has somewhat different meaning between the two procedures.&lt;/P&gt;
&lt;P&gt;Proc freq: If you use a WEIGHT statement, PROC FREQ assumes that an observation represents &lt;SPAN class=" AAmathtext"&gt;n&lt;/SPAN&gt; observations, which will effectively change the sample size used for calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surveylogistic weight variable contains sampling weights, which are not the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-proc-survey-logistic-and-proc-freq-chisq/m-p/413374#M67462</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-14T15:26:31Z</dc:date>
    </item>
  </channel>
</rss>

