<?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: Proc freq for 7x2 table, significant; how to pairwise in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266477#M57960</link>
    <description>&lt;P&gt;Regarding the testing of means, the LSMEANS statement in PROC GLM provides all of the options you need to compare all means in as many ways as you can think of, and adjust for the multiple comparisons using several methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=yourdata;
class site;
model age=site;
lsmeans site/pdiff stderr cl adjust=sidak;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gives a Sidak adjustment for the 21 comparisons possible between the mean ages at the 7 sites.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 18:03:55 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-04-26T18:03:55Z</dc:date>
    <item>
      <title>Proc freq for 7x2 table, significant; how to pairwise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266442#M57957</link>
      <description>&lt;P&gt;I have age, gender (M,F) and sites (1,2,...7) columns, and I used proc freq to test (sites, gender ) and it showed p&amp;lt;0.001.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data= demo_sites ;
tables gender*sites_signup /chisq;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But, how to do a pairwised chi-square test? I want to see which two groups are signigicant, and which two are not.&lt;/P&gt;
&lt;P&gt;can I use &lt;STRONG&gt;proc multtest&lt;/STRONG&gt; in this case? &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A similar question for testing means of age in the 7 sites groups. I can use proc anova or proc glm to do a ANOVA test.&lt;/P&gt;
&lt;P&gt;Is the solution to use &lt;STRONG&gt;proc multtest&lt;/STRONG&gt; and contrast statement, like &lt;A href="http://www.ats.ucla.edu/stat/sas/library/multtest.htm" target="_self"&gt;http://www.ats.ucla.edu/stat/sas/library/multtest.htm&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266442#M57957</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-26T16:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq for 7x2 table, significant; how to pairwise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266447#M57958</link>
      <description>&lt;P&gt;This isn't an exact answer, but it may be helpful.&amp;nbsp; Similar to CHISQ, there is an option (CELLCHISQ?&amp;nbsp; may need to check my spelling) that adds to each cell its contribution to the overall chi-square.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266447#M57958</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-26T16:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq for 7x2 table, significant; how to pairwise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266449#M57959</link>
      <description>&lt;P&gt;Thank you!! it is CELLCHI2.&lt;/P&gt;
&lt;P&gt;With your hints I found one example:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_sect030.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_sect030.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266449#M57959</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-26T16:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq for 7x2 table, significant; how to pairwise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266477#M57960</link>
      <description>&lt;P&gt;Regarding the testing of means, the LSMEANS statement in PROC GLM provides all of the options you need to compare all means in as many ways as you can think of, and adjust for the multiple comparisons using several methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=yourdata;
class site;
model age=site;
lsmeans site/pdiff stderr cl adjust=sidak;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gives a Sidak adjustment for the 21 comparisons possible between the mean ages at the 7 sites.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266477#M57960</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-04-26T18:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq for 7x2 table, significant; how to pairwise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266509#M57961</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham﻿&lt;/a&gt;&amp;nbsp; Yes! This works excellently!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 19:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-for-7x2-table-significant-how-to-pairwise/m-p/266509#M57961</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-26T19:35:28Z</dc:date>
    </item>
  </channel>
</rss>

