<?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: Residuals Chi-square test in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203861#M15258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you need this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;table sex*age/deviation expected &lt;STRONG&gt;chisq cellchi2&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P&gt;ods output crosstabfreqs=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Apr 2015 05:23:08 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-04-26T05:23:08Z</dc:date>
    <item>
      <title>Residuals Chi-square test</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203859#M15256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, statistics is not my best part &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;, but now I have to do quite a lot of table analysis with chi-square tests.&lt;/P&gt;&lt;P&gt;Therefore, I have to calculate the residuals for each cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;Is there any possibility to calculate the standardized residuals by a chi-square test in SAS Enterprise Guide 7.1?&lt;/P&gt;&lt;P&gt;In "Cell statistics", there is choice to indicate "Cell contribution to Pearson Chi-square" e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or can I better calculate the residuals by myself (excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 13:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203859#M15256</guid>
      <dc:creator>Mdstudent</dc:creator>
      <dc:date>2015-04-25T13:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Residuals Chi-square test</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203860#M15257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how to do it via point and click.&amp;nbsp; Via code you can request the deviation amount and expected amount.&amp;nbsp; Perhaps those are options in the output statistics section?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with standardized residuals for chi square tests.&amp;nbsp; Given the statistical nature of this question you may want to post/move it to the SAS Statistical Procedure section instead of EG. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods trace on;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;table sex*age/deviation expected;&lt;/P&gt;&lt;P&gt;ods output crosstabfreqs=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods trace off;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 17:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203860#M15257</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-25T17:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Residuals Chi-square test</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203861#M15258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you need this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;table sex*age/deviation expected &lt;STRONG&gt;chisq cellchi2&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P&gt;ods output crosstabfreqs=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 05:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203861#M15258</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-26T05:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Residuals Chi-square test</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203862#M15259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah! Now that I see the SAS code, I can suggest the "point and click" method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. With your dataset open, select Describe | Table Analysis.&lt;/P&gt;&lt;P&gt;2. On the "Data" tab, drag your variables into the Table Variables selections.&lt;/P&gt;&lt;P&gt;3. On the "Tables" tab, drag one variable to the top, and the other to the left.&lt;/P&gt;&lt;P&gt;4. On "Cell Statistics", select Cell Frequency ... and Expected Cell Frequency&lt;/P&gt;&lt;P&gt;5. On "Table Statistics" / "Association", select Chi-square tests&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run the task.&lt;/P&gt;&lt;P&gt;How close is this to what you want?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 14:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Residuals-Chi-square-test/m-p/203862#M15259</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-04-26T14:39:14Z</dc:date>
    </item>
  </channel>
</rss>

