<?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: How to preform a multiple comparison in Proc Freq? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162031#M42140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC MULTTEST is your best bet here.&amp;nbsp; I would suggest doing as you already have to test for overall differences.&amp;nbsp; if that is significant, then comes the not-so-fun part with 4 treatments.&amp;nbsp; You will need 6 runs of proc freq, pairwise comparing each treatment to every other treatment, and saving the raw p values to a common dataset.&amp;nbsp; You may then apply PROC MULTTEST as in Example 65.5 inputting Raw &lt;EM&gt;p&lt;/EM&gt;-Values.&amp;nbsp; There are a variety of adjustment methods available.&amp;nbsp; I am a fan of stepdown Sidak or false discovery rate control methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2014 18:55:32 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-07-02T18:55:32Z</dc:date>
    <item>
      <title>Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162028#M42137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to analysis a imbalanced Incomplete blocks design. Because the distribution is not normal. I decided to use Non parametric method to analysis. I am thinking maybe the Durbin's Test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input subject trt response;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; A 2&lt;/P&gt;&lt;P&gt;1&amp;nbsp; B 2.5&lt;/P&gt;&lt;P&gt;2&amp;nbsp; A .&lt;/P&gt;&lt;P&gt;2&amp;nbsp; C 5&lt;/P&gt;&lt;P&gt;3&amp;nbsp; A 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp; D 8&lt;/P&gt;&lt;P&gt;4&amp;nbsp; B 4&lt;/P&gt;&lt;P&gt;4&amp;nbsp; A 8&lt;/P&gt;&lt;P&gt;5&amp;nbsp; B 3&lt;/P&gt;&lt;P&gt;5&amp;nbsp; C 2&lt;/P&gt;&lt;P&gt;6&amp;nbsp; B .&lt;/P&gt;&lt;P&gt;6&amp;nbsp; D 8&lt;/P&gt;&lt;P&gt;7&amp;nbsp; C 4&lt;/P&gt;&lt;P&gt;7&amp;nbsp; A 2&lt;/P&gt;&lt;P&gt;8&amp;nbsp; C 1&lt;/P&gt;&lt;P&gt;8&amp;nbsp; B 7&lt;/P&gt;&lt;P&gt;9&amp;nbsp; C 2&lt;/P&gt;&lt;P&gt;9&amp;nbsp; D 8&lt;/P&gt;&lt;P&gt;10&amp;nbsp; D 2&lt;/P&gt;&lt;P&gt;10&amp;nbsp; A 0&lt;/P&gt;&lt;P&gt;11&amp;nbsp; D 5&lt;/P&gt;&lt;P&gt;11&amp;nbsp; B 2&lt;/P&gt;&lt;P&gt;12&amp;nbsp; D 7&lt;/P&gt;&lt;P&gt;12&amp;nbsp; C .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ;&lt;/P&gt;&lt;P&gt;table subject* trt*response / noprint cmh2 scores=rank;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would output the overall Trt difference P-value, but how to do the multiple comparison to show the difference between each two trts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;FRED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162028#M42137</guid>
      <dc:creator>FredXu</dc:creator>
      <dc:date>2014-07-01T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162029#M42138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, Maybe you should check proc glm + lsmeans&amp;nbsp; /durb&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162029#M42138</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-02T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162030#M42139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your advise. I am thinking that maybe lsmean is using a different algorithm if there are some missing values and incomplete blocks. Maybe Glm +Mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162030#M42139</guid>
      <dc:creator>FredXu</dc:creator>
      <dc:date>2014-07-02T13:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162031#M42140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC MULTTEST is your best bet here.&amp;nbsp; I would suggest doing as you already have to test for overall differences.&amp;nbsp; if that is significant, then comes the not-so-fun part with 4 treatments.&amp;nbsp; You will need 6 runs of proc freq, pairwise comparing each treatment to every other treatment, and saving the raw p values to a common dataset.&amp;nbsp; You may then apply PROC MULTTEST as in Example 65.5 inputting Raw &lt;EM&gt;p&lt;/EM&gt;-Values.&amp;nbsp; There are a variety of adjustment methods available.&amp;nbsp; I am a fan of stepdown Sidak or false discovery rate control methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 18:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162031#M42140</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-02T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162032#M42141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, Steve. and I have a following question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the same data set. can we ASSIGN RANKS for each blocks, and if we come across a missing value, we will manually assign a median rank to it (in this case (1+2)/2=1.5). then use PROC MIXED to do the analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc rank data=&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; test&lt;/SPAN&gt; out=base;&lt;/P&gt;&lt;P&gt; by subject;&lt;/P&gt;&lt;P&gt; var response;&lt;/P&gt;&lt;P&gt;ranks R_res;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data base;set base;&lt;/P&gt;&lt;P&gt;if response=. then R_res=1.5;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc mixed data=base;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class trt subject&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model R_res=trt subject /residual&amp;nbsp; htype=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans trt/diff&amp;nbsp; cl alpha=0.05;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 19:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162032#M42141</guid>
      <dc:creator>FredXu</dc:creator>
      <dc:date>2014-07-02T19:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162033#M42142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you rank by subject, all of the values will be 1, 2 or 1.5, so far as I can tell.&amp;nbsp; What about ranking across all subjects (drop the by subject line in PROC RANK) and insert back in the median rank (12.5) for the missings.&amp;nbsp; Then, using PROC MIXED, I would try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=base;&lt;/P&gt;&lt;P&gt;class trt subject;&lt;/P&gt;&lt;P&gt;model R_res=trt;&lt;/P&gt;&lt;P&gt;random subject;&lt;/P&gt;&lt;P&gt;lsmeans trt/diff cl adjust=simulate(seed=1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for the test data stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 19:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162033#M42142</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-02T19:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq: How to preform a multiple comparison in Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162034#M42143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much again, I will try on this one and let you know the results &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 19:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-How-to-preform-a-multiple-comparison-in-Proc-Freq/m-p/162034#M42143</guid>
      <dc:creator>FredXu</dc:creator>
      <dc:date>2014-07-02T19:56:18Z</dc:date>
    </item>
  </channel>
</rss>

