<?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: Comparing row proportions from an individual column of a Chi- sq test for significance? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432374#M22750</link>
    <description>&lt;P&gt;You could compare the two proportions using the formula here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://onlinecourses.science.psu.edu/stat500/node/55" target="_blank"&gt;https://onlinecourses.science.psu.edu/stat500/node/55&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just underneath the heading "Hypothesis Testing to Compare Two Population Proportions: p1,p2" (this assumes that groups A and B are independent, statistically)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use PROC FREQ to obtain the proportions, and then the formula itself isn't hard to program in a data step.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2018 17:50:52 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-01-30T17:50:52Z</dc:date>
    <item>
      <title>Comparing row proportions from an individual column of a Chi- sq test for significance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432362#M22748</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I test for significance using proportions in the following data:&lt;BR /&gt;&lt;BR /&gt;Var&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y&amp;nbsp; &amp;nbsp; &amp;nbsp;Z&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; 60&amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp;200&amp;nbsp; &amp;nbsp; 300&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i want to show that the total proportion of Z in A (10/120)&amp;nbsp; is different from Z in B (300 /600), which test of significance would I use and how would i code it? My data is structured the following way:&lt;BR /&gt;v1&amp;nbsp; &amp;nbsp; v2&amp;nbsp; &amp;nbsp; v3&lt;BR /&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; X&amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;BR /&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; Y&amp;nbsp; &amp;nbsp; &amp;nbsp;60&lt;BR /&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; Z&amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;BR /&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; X&amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; Y&amp;nbsp; &amp;nbsp; &amp;nbsp;200&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; Z&amp;nbsp; &amp;nbsp; &amp;nbsp;300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know Chi-sq would compare proportions in all three columns together, but how can i focus the significance test to just Z in A vs Z in B.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 17:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432362#M22748</guid>
      <dc:creator>supreets89</dc:creator>
      <dc:date>2018-01-30T17:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing row proportions from an individual column of a Chi- sq test for significance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432374#M22750</link>
      <description>&lt;P&gt;You could compare the two proportions using the formula here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://onlinecourses.science.psu.edu/stat500/node/55" target="_blank"&gt;https://onlinecourses.science.psu.edu/stat500/node/55&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just underneath the heading "Hypothesis Testing to Compare Two Population Proportions: p1,p2" (this assumes that groups A and B are independent, statistically)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use PROC FREQ to obtain the proportions, and then the formula itself isn't hard to program in a data step.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 17:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432374#M22750</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-30T17:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing row proportions from an individual column of a Chi- sq test for significance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432427#M22754</link>
      <description>&lt;P&gt;All you care about is Z and not Z - the separate X and Y levels can be combined. PROC FREQ can do the chi-square test for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
input r $ c $ count;
datalines;
A notZ 110
A Z     10
B notZ 300
B Z    300
;
proc freq;
table r*c / chisq;
weight count; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2018 18:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432427#M22754</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-01-30T18:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing row proportions from an individual column of a Chi- sq test for significance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432718#M22774</link>
      <description>&lt;P&gt;Or you want do Trend Analysis ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq;&lt;/P&gt;
&lt;P&gt;table v1*v2/trend;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432718#M22774</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-31T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing row proportions from an individual column of a Chi- sq test for significance?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432846#M22782</link>
      <description>&lt;P&gt;I think that the solution suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt; in this current Community thread&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Chi-square-test-of-association/m-p/432752#M22775" target="_self"&gt;Chi square test of association&lt;/A&gt;&amp;nbsp;which links to this note&amp;nbsp;&lt;A title="Usage Note 22565: Performing multiple comparisons or tests on subtables following a significant Pearson chi-square" href="http://support.sas.com/kb/22/565.html" target="_self"&gt;http://support.sas.com/kb/22/565.html&lt;/A&gt;&amp;nbsp;would provide you with the tools you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-row-proportions-from-an-individual-column-of-a-Chi-sq/m-p/432846#M22782</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-01-31T17:31:17Z</dc:date>
    </item>
  </channel>
</rss>

