<?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 Running a Chi Square in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703961#M215755</link>
    <description>&lt;P&gt;I am trying to get this output to run for a Chi Square, here is my Code:&lt;/P&gt;&lt;P&gt;ODS Trace on;&lt;BR /&gt;Proc Freq Data=hypanl.hypanalysis2;&lt;BR /&gt;Tables hypreldeathInd * StateCd / Nopercent norow nocum chisq;&lt;BR /&gt;Run;&lt;BR /&gt;ODS Trace Off;&lt;/P&gt;&lt;P&gt;ODS OUTPUT CrossTabFreqs=HRslt.Percents (KEEP = Cd DeathInd Frequency ColPercent&lt;BR /&gt;WHERE = (DeathInd = 1 AND MISSING (Cd)=0));&lt;/P&gt;&lt;P&gt;ODS OUTPUT Chisq=HRslt.ChiSqResults&lt;BR /&gt;(DROP=TABLE&lt;BR /&gt;WHERE= (Statistic= 'Chi Square'));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC PRINT DATA=H.Percents;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA=H.ChiSqResults;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;I am getting this Error in the log:&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: File H.ChiSq.DATA does not exist.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;And these Warnings:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;DIV class="sasWarning"&gt;WARNING: Output 'Chisq' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;that the appropriate procedure options are used to produce the requested output object. For example, verify that the&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;NOPRINT option is not used.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Output 'CrossTabFreqs' was not created. Make sure that the output object name, label, or path is spelled correctly.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;that the NOPRINT option is not used.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Any suggestions on whats happening, particularly with the Error...&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Dec 2020 15:13:55 GMT</pubDate>
    <dc:creator>bhufman</dc:creator>
    <dc:date>2020-12-10T15:13:55Z</dc:date>
    <item>
      <title>Running a Chi Square</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703961#M215755</link>
      <description>&lt;P&gt;I am trying to get this output to run for a Chi Square, here is my Code:&lt;/P&gt;&lt;P&gt;ODS Trace on;&lt;BR /&gt;Proc Freq Data=hypanl.hypanalysis2;&lt;BR /&gt;Tables hypreldeathInd * StateCd / Nopercent norow nocum chisq;&lt;BR /&gt;Run;&lt;BR /&gt;ODS Trace Off;&lt;/P&gt;&lt;P&gt;ODS OUTPUT CrossTabFreqs=HRslt.Percents (KEEP = Cd DeathInd Frequency ColPercent&lt;BR /&gt;WHERE = (DeathInd = 1 AND MISSING (Cd)=0));&lt;/P&gt;&lt;P&gt;ODS OUTPUT Chisq=HRslt.ChiSqResults&lt;BR /&gt;(DROP=TABLE&lt;BR /&gt;WHERE= (Statistic= 'Chi Square'));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC PRINT DATA=H.Percents;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA=H.ChiSqResults;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;I am getting this Error in the log:&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: File H.ChiSq.DATA does not exist.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;And these Warnings:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;DIV class="sasWarning"&gt;WARNING: Output 'Chisq' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;that the appropriate procedure options are used to produce the requested output object. For example, verify that the&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;NOPRINT option is not used.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Output 'CrossTabFreqs' was not created. Make sure that the output object name, label, or path is spelled correctly.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;that the NOPRINT option is not used.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Any suggestions on whats happening, particularly with the Error...&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703961#M215755</guid>
      <dc:creator>bhufman</dc:creator>
      <dc:date>2020-12-10T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Chi Square</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703964#M215757</link>
      <description>&lt;P&gt;Your ODS OUTPUT statements belong immediately before or inside PROC FREQ. It doesn't work where you put it, after PROC FREQ ended.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 21:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703964#M215757</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-06T21:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Chi Square</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703966#M215759</link>
      <description>Thanks for this tip! I'm still getting the warning about the output for ChiSq and the Error that the ChiSq File doesn't exist.</description>
      <pubDate>Sun, 06 Dec 2020 21:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703966#M215759</guid>
      <dc:creator>bhufman</dc:creator>
      <dc:date>2020-12-06T21:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Chi Square</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703967#M215760</link>
      <description>&lt;P&gt;Show us the log for your PROC FREQ, including all WARNINGs, ERRORs, NOTEs and the actual code for PROC FREQ as it appears in the log. Do not chop anything out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide the log following these instructions (and not via any other method): copy the log as text from the SAS log window, and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 21:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703967#M215760</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-06T21:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Chi Square</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703969#M215762</link>
      <description>&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;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703969#M215762</guid>
      <dc:creator>bhufman</dc:creator>
      <dc:date>2020-12-10T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Chi Square</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703974#M215767</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim 2&lt;/A&gt;: Read the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; NOTE: No statistics are computed for HypRelDeathInd * StateCd because HypRelDeathInd has fewer than 2 nonmissing levels.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your data is not appropriate for this test.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 21:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-Chi-Square/m-p/703974#M215767</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-06T21:41:58Z</dc:date>
    </item>
  </channel>
</rss>

