<?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: Chi-square test for each row in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306498#M61024</link>
    <description>&lt;P&gt;You mean One-Way Chi-square ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class;
where age=14;
table sex/ testp=(0.5 0.5); *testf=(10 6);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Oct 2016 03:27:09 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-10-22T03:27:09Z</dc:date>
    <item>
      <title>Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306278#M60983</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm interested in knowing whether the individual levels of my row variable are related to my column variable in a contingency table.&lt;/P&gt;&lt;P&gt;Is SAS able to produce Chi-square tests for each row of your contingency table, in stead of a general chi-square test? I cannot seem to work out how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 13:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306278#M60983</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-10-21T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306297#M60992</link>
      <description>&lt;P&gt;You should provide a brief example of your data (variable names help the discussion) and the say which are needed for your test. Since chi-sq also wants count values you will need to indicate which are the category values and which are the counts for those values.&lt;/P&gt;
&lt;P&gt;Often data needs to be reshaped before some tests.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 14:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306297#M60992</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-21T14:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306498#M61024</link>
      <description>&lt;P&gt;You mean One-Way Chi-square ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class;
where age=14;
table sex/ testp=(0.5 0.5); *testf=(10 6);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Oct 2016 03:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306498#M61024</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-22T03:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306714#M61048</link>
      <description>&lt;P&gt;OK, I understand! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: I have my row variable SES, with the levels low, moderate and high. I want to test, whether each level of SES is associated with physical activity which has been divided in four categories (no, moderate, active, severe). What I want to get out is&amp;nbsp;3 p-values, each indicating whether the level of SES (low, moderate and high)&amp;nbsp;is associated with the level of physical activity.&lt;/P&gt;&lt;P&gt;I know that Chi-square generally tells you whether the two variables are associated, but can you also ask for row-specific tests?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I making myself more clear now? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I hope so. Please let me know if not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306714#M61048</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-10-24T07:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306718#M61050</link>
      <description>&lt;P&gt;Not quite, see my more clear explanation above: I have two categorical variables, but I don't want to know whether they are related in general, but I want to see whether each level of my row variable (SES: low, moderate, high)&amp;nbsp;is associated with my column variable (physical acitivy: four levels). So I want three P-values: each indicating whether the level of SES is associated with physical acitivity.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306718#M61050</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-10-24T07:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306739#M61053</link>
      <description>&lt;P&gt;If you want test "&lt;SPAN&gt; each level of SES" , that mean these three row level is independent. That make "association" nonsense.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if column level from first to last , &amp;nbsp;what gonna do with the single row level ? &amp;nbsp;You can ONLY  measure "association" between two variables which have more than two levels .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try Trend Analysis ,but that is only for 2xn or nx2 contingency table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example 40.8: Cochran-Armitage Trend Test&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 10:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306739#M61053</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-24T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test for each row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306746#M61055</link>
      <description>&lt;P&gt;OK I see, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 10:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Chi-square-test-for-each-row/m-p/306746#M61055</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-10-24T10:50:43Z</dc:date>
    </item>
  </channel>
</rss>

