<?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: Incorrect result in chisq test in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906905#M40543</link>
    <description>&lt;P&gt;If you are a novice at SAS, why would you assert that SAS, written by professional statisticians, is producing incorrect results? Where did you input your COUNT variable into the analysis? You did not. Look at the documentation and figure out how you add that variable. SAS is producing correct results. This is a user error.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 02:55:19 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2023-12-08T02:55:19Z</dc:date>
    <item>
      <title>Incorrect result in chisq test</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906903#M40541</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was I am quite novice in&amp;nbsp; sas programming. I would really appreciate if someone can help me in solving my data analysis. I am doing a retrospective cohort study and trying to compare if operations done during the afterhours have more complications than daytime. I am doing a chisq test. I imported my data correctly in sas. As i can see that sas can read my data. However, when i am running chi sq test , it put in 1 in reach of the cells of the contingency table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my data steps below and the screenshot of the sas error result &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My data" style="width: 749px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91005i58D5FE134483723C/image-size/large?v=v2&amp;amp;px=999" role="button" title="dataset.jpg" alt="My data" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;My data&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sas error result" style="width: 749px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91006iC0BBDBBBD3FB49F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="result error 1.jpg" alt="Sas error result" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sas error result&lt;/span&gt;&lt;/span&gt;and my dataset attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;filename refile '/home/u62871531/Audit.xlsx';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc import datafile=refile&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;out=audit&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;BR /&gt;proc freq data=audit order=freq;&lt;BR /&gt;tables Group*Complications/chisq norow nopercent measures expected;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 02:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906903#M40541</guid>
      <dc:creator>Bushra1</dc:creator>
      <dc:date>2023-12-08T02:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result in chisq test</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906904#M40542</link>
      <description>&lt;P&gt;You'll want to add a WEIGHT statement in your call to PROC FREQ:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=audit order=freq;
    tables Group*Complications/chisq norow nopercent measures expected;
    weight count;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A weight statement will provide the counts required to perform a Chi-square test.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 02:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906904#M40542</guid>
      <dc:creator>antonbcristina</dc:creator>
      <dc:date>2023-12-08T02:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result in chisq test</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906905#M40543</link>
      <description>&lt;P&gt;If you are a novice at SAS, why would you assert that SAS, written by professional statisticians, is producing incorrect results? Where did you input your COUNT variable into the analysis? You did not. Look at the documentation and figure out how you add that variable. SAS is producing correct results. This is a user error.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 02:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906905#M40543</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2023-12-08T02:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result in chisq test</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906906#M40544</link>
      <description>Thanks so much . It solved the problem. Really appreciate it.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Dec 2023 03:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Incorrect-result-in-chisq-test/m-p/906906#M40544</guid>
      <dc:creator>Bushra1</dc:creator>
      <dc:date>2023-12-08T03:08:16Z</dc:date>
    </item>
  </channel>
</rss>

