<?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 Proc FREQ: No warning message with expected value &amp;lt;5 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16626#M3089</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
In a population of adolescents, I have to compare distribution of Family Affluence Scale (FAS) according to school level (level). I use the FREQ procedure (with chisq option) to do so, and I wonder why SAS does not warn me in the output of expected values under 5.&lt;BR /&gt;
I know that the chi-square may be valid (because 5 is an empirical choice and is conservative, especially when degrees of freedom and sample size are high, see Agresti "Categorical Data Analysis" for example), but I don't understand why SAS does not warn me. I thought SAS always printed a warning message when expected values were under 5.&lt;BR /&gt;
&lt;BR /&gt;
Here are the data if you want to try it yourself.&lt;BR /&gt;
&lt;BR /&gt;
data bonjour;&lt;BR /&gt;
input FAS$ level$ n;&lt;BR /&gt;
cards;&lt;BR /&gt;
1	1	16&lt;BR /&gt;
2	1	58&lt;BR /&gt;
3	1	57&lt;BR /&gt;
1	2	127&lt;BR /&gt;
2	2	626&lt;BR /&gt;
3	2	833&lt;BR /&gt;
1	3	18&lt;BR /&gt;
2	3	137&lt;BR /&gt;
3	3	206&lt;BR /&gt;
1	4	1&lt;BR /&gt;
2	4	21&lt;BR /&gt;
3	4	32&lt;BR /&gt;
1	5	11&lt;BR /&gt;
2	5	21&lt;BR /&gt;
3	5	23&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Any explanation?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance (and pardon my english!)&lt;BR /&gt;
&lt;BR /&gt;
Gauthier</description>
    <pubDate>Fri, 09 May 2008 08:23:21 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-05-09T08:23:21Z</dc:date>
    <item>
      <title>Proc FREQ: No warning message with expected value &lt;5</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16626#M3089</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
In a population of adolescents, I have to compare distribution of Family Affluence Scale (FAS) according to school level (level). I use the FREQ procedure (with chisq option) to do so, and I wonder why SAS does not warn me in the output of expected values under 5.&lt;BR /&gt;
I know that the chi-square may be valid (because 5 is an empirical choice and is conservative, especially when degrees of freedom and sample size are high, see Agresti "Categorical Data Analysis" for example), but I don't understand why SAS does not warn me. I thought SAS always printed a warning message when expected values were under 5.&lt;BR /&gt;
&lt;BR /&gt;
Here are the data if you want to try it yourself.&lt;BR /&gt;
&lt;BR /&gt;
data bonjour;&lt;BR /&gt;
input FAS$ level$ n;&lt;BR /&gt;
cards;&lt;BR /&gt;
1	1	16&lt;BR /&gt;
2	1	58&lt;BR /&gt;
3	1	57&lt;BR /&gt;
1	2	127&lt;BR /&gt;
2	2	626&lt;BR /&gt;
3	2	833&lt;BR /&gt;
1	3	18&lt;BR /&gt;
2	3	137&lt;BR /&gt;
3	3	206&lt;BR /&gt;
1	4	1&lt;BR /&gt;
2	4	21&lt;BR /&gt;
3	4	32&lt;BR /&gt;
1	5	11&lt;BR /&gt;
2	5	21&lt;BR /&gt;
3	5	23&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Any explanation?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance (and pardon my english!)&lt;BR /&gt;
&lt;BR /&gt;
Gauthier</description>
      <pubDate>Fri, 09 May 2008 08:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16626#M3089</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-09T08:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FREQ: No warning message with expected value &lt;5</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16627#M3090</link>
      <description>Hi Gauthier.&lt;BR /&gt;
I do get the Warning message, but only when there more than 20 % cells with expected counts under 5.&lt;BR /&gt;
See Freq procedure documentation, on the NOWARN option in the TABLES statement :&lt;BR /&gt;
NOWARN &lt;BR /&gt;
suppresses the log warning message that the asymptotic chi-square test may not be valid. By default, PROC FREQ displays this log message when more than 20 percent of the table cells have expected frequencies less than five. &lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
Olivier</description>
      <pubDate>Fri, 09 May 2008 11:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16627#M3090</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-05-09T11:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FREQ: No warning message with expected value &lt;5</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16628#M3091</link>
      <description>Hi Olivier,&lt;BR /&gt;
&lt;BR /&gt;
I appreciate your help. I recently updated from SAS v 8.2 to v 9.1 and kept on using SAS 8.2 Documentation! I've just checked the NOWARN option in the SAS 9.1 documentation.&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
Gauthier</description>
      <pubDate>Fri, 09 May 2008 12:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-No-warning-message-with-expected-value-lt-5/m-p/16628#M3091</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-09T12:17:34Z</dc:date>
    </item>
  </channel>
</rss>

