<?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: SAS_Chi SQUARE_Compare two percentages in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349547#M2352</link>
    <description>&lt;P&gt;Chi Square would use the raw numbers from the 2x2 table, not the percentages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To compare percentages you can use PROC TTEST but you need to make sure to include the correct N and possibly the standard deviation. You also need to factor in a continuity correction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend PROC FREQ instead of trying to test the percentages. The data lends itself to that format naturally.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 17:48:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-04-12T17:48:17Z</dc:date>
    <item>
      <title>SAS_Chi SQUARE_Compare two percentages</title>
      <link>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349480#M2351</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to compare two percentages. I think Chi-Square test is appropriate for this. So, I have the following datasets;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group &amp;nbsp; &amp;nbsp;Number of Success &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Total number&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compute the percantages of number of success in the first and second group and then compare them whether the difference between this comparision is statistically significant by using Chi-Square test. So the should be one more column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group &amp;nbsp; &amp;nbsp;Number of Success &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Total number &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Percentages&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50% &amp;nbsp; (5/10*100)&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10% &amp;nbsp; (3/30*100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I want to see whether the difference between percantages (50% and 10%) is statistically significant by using Chi-Square test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349480#M2351</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-04-12T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Chi SQUARE_Compare two percentages</title>
      <link>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349547#M2352</link>
      <description>&lt;P&gt;Chi Square would use the raw numbers from the 2x2 table, not the percentages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To compare percentages you can use PROC TTEST but you need to make sure to include the correct N and possibly the standard deviation. You also need to factor in a continuity correction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend PROC FREQ instead of trying to test the percentages. The data lends itself to that format naturally.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 17:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349547#M2352</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-12T17:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Chi SQUARE_Compare two percentages</title>
      <link>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349548#M2353</link>
      <description>Dear Reeza,&lt;BR /&gt;&lt;BR /&gt;Many thanks for reply. Could you please explain how to use PROC FREQ? could you please give me the sample codes?</description>
      <pubDate>Wed, 12 Apr 2017 17:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349548#M2353</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-04-12T17:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Chi SQUARE_Compare two percentages</title>
      <link>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349554#M2354</link>
      <description>&lt;P&gt;An example showing how to use PROC FREQ to compare two proportions is:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/22/561.html" target="_blank"&gt;http://support.sas.com/kb/22/561.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 18:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/SAS-Chi-SQUARE-Compare-two-percentages/m-p/349554#M2354</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-04-12T18:10:00Z</dc:date>
    </item>
  </channel>
</rss>

