<?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: Multiple EDF testing in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309793#M16394</link>
    <description>&lt;P&gt;Shmuel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really wanted to discover an option like DSCF pointed out&amp;nbsp;by Rick (below) but as applied to the EDF stats.&amp;nbsp; It looks like I might have to do that type of statistical correction by hand.&amp;nbsp; But&amp;nbsp;I would like to know how to code to produce&amp;nbsp;all-pair-wise comparisons, since the first step in doing the corrections by hand is getting the stats efficiently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are four treatment levels (call them A B C D).&amp;nbsp; The all-pairwise comparisons would be AB, AC, AD, BC, BD, CD. I would code them individually&amp;nbsp;using a where statement to cycle through these options.&amp;nbsp;&amp;nbsp;So, for example, the first one would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc npar1way edf ;&lt;/P&gt;
&lt;P&gt;class treatment;&lt;/P&gt;
&lt;P&gt;where treatment in ('A', 'B');&lt;/P&gt;
&lt;P&gt;var log_area ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the next one would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc npar1way edf ;&lt;/P&gt;
&lt;P&gt;class treatment;&lt;/P&gt;
&lt;P&gt;where treatment in ('A', 'C');&lt;/P&gt;
&lt;P&gt;var log_area ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this particular case, there aren't that many&amp;nbsp;to write out but I am interested in what you would suggest to be more efficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 18:09:16 GMT</pubDate>
    <dc:creator>das</dc:creator>
    <dc:date>2016-11-07T18:09:16Z</dc:date>
    <item>
      <title>Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309165#M16360</link>
      <description>&lt;P&gt;I'm trying to help a researcher that tested for an effect of a drug on viral plaque size.&amp;nbsp;Treatments included four levels of drug including 0 (the vehicle control). Only one set of measurements are available for each level of drug treatment.&amp;nbsp; So I've wondered if it is possible just to test for differences in the resulting distributions of viral plaque size by running the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(SAS ver 9.3)&lt;/P&gt;
&lt;P&gt;proc npar1way edf;&lt;/P&gt;
&lt;P&gt;class treatment;&lt;/P&gt;
&lt;P&gt;var log_area ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that results in the following plus K-S and C-vM stats.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="EDFPlot14.png" alt="EDFPlot14.png" src="https://communities.sas.com/t5/image/serverpage/image-id/5632iE1CCF487FD4CAA9B/image-size/medium?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a multiple comparison procedure that can be applied to test all pairwise combinations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do i just add a where clause to multiple repeats of the sas code above to do each comparison 'by hand'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The researcher actually did the expeimenrt using four culture plates (replicates) per treatment group, but they didn't save the plate information when doing the measurements, so i don't feel i can really consider doing some sort of anova.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interested in peoples thoughts and considerations.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 02:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309165#M16360</guid>
      <dc:creator>das</dc:creator>
      <dc:date>2016-11-04T02:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309487#M16366</link>
      <description>&lt;P&gt;I'm not a statistian but a SAS programmer.&lt;/P&gt;
&lt;P&gt;You can run any SAS code with slight changes with more than one method.&lt;/P&gt;
&lt;P&gt;Please post an example of two or three permutations of your code and me or anyone else&lt;/P&gt;
&lt;P&gt;shall post available code to run it at one submit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code is:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc npar1way edf;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;class treatment;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var log_area ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;you asked for multiple ...pairwise combinations:&lt;/P&gt;
&lt;P&gt;It is possible to enter the combinamtions &lt;U&gt;manually&lt;/U&gt; or create them &lt;U&gt;programatically&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;Please post few lines of your data with the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 10:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309487#M16366</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-05T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309495#M16367</link>
      <description>&lt;P&gt;The DSCF option on the PROC NPAR1WAY statement requests multiple comparisons. See &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_npar1way_syntax01.htm" target="_self"&gt;the documentation for the PROC NPAR1WAY statement.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 10:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309495#M16367</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-11-05T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309789#M16393</link>
      <description>&lt;P&gt;Rick.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I missed that. I guess I am used to looking for&amp;nbsp;post hoc test requesting down a ways in the lines of code, like in post-model statements LSMEANS/CONTRAST/TEST.&amp;nbsp; Didn't occur to me that they could be listed in the procedure line of code.&amp;nbsp; Thank you very much for pointing this out to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was hoping that there was a way to code for multiple comparions on the EDF stats.&amp;nbsp; The above only applies DSCF to an ANOVA on Wilcoxon scores.&amp;nbsp;&amp;nbsp;I&amp;nbsp;suppse&amp;nbsp;I can 'hand-apply' tukey or BON corrections to&amp;nbsp;the multiple EDF stat tables produced&amp;nbsp;by cycling NPAR1WAY&amp;nbsp;through the comparisons individually.&amp;nbsp; I'm just not a statistician and so don't know if this is appropriate to K-S C-vM stats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309789#M16393</guid>
      <dc:creator>das</dc:creator>
      <dc:date>2016-11-07T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309793#M16394</link>
      <description>&lt;P&gt;Shmuel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really wanted to discover an option like DSCF pointed out&amp;nbsp;by Rick (below) but as applied to the EDF stats.&amp;nbsp; It looks like I might have to do that type of statistical correction by hand.&amp;nbsp; But&amp;nbsp;I would like to know how to code to produce&amp;nbsp;all-pair-wise comparisons, since the first step in doing the corrections by hand is getting the stats efficiently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are four treatment levels (call them A B C D).&amp;nbsp; The all-pairwise comparisons would be AB, AC, AD, BC, BD, CD. I would code them individually&amp;nbsp;using a where statement to cycle through these options.&amp;nbsp;&amp;nbsp;So, for example, the first one would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc npar1way edf ;&lt;/P&gt;
&lt;P&gt;class treatment;&lt;/P&gt;
&lt;P&gt;where treatment in ('A', 'B');&lt;/P&gt;
&lt;P&gt;var log_area ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the next one would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc npar1way edf ;&lt;/P&gt;
&lt;P&gt;class treatment;&lt;/P&gt;
&lt;P&gt;where treatment in ('A', 'C');&lt;/P&gt;
&lt;P&gt;var log_area ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this particular case, there aren't that many&amp;nbsp;to write out but I am interested in what you would suggest to be more efficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 18:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309793#M16394</guid>
      <dc:creator>das</dc:creator>
      <dc:date>2016-11-07T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309883#M16396</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15260"&gt;@das﻿&lt;/a&gt;&amp;nbsp;although you have signed already a solution, I hope you will find interest in next code.&lt;/P&gt;
&lt;P&gt;Most of the code I have tested and it runs Ok. I couldnt run the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;proc npar1way &lt;/SPAN&gt;&lt;/STRONG&gt;as I have not the data;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) &lt;U&gt;Get individual arguments and create pairs &amp;nbsp;(assuming AB = BA), using a macro:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro cre_pairs(odds=);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%global PAIRS; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* macro variable to contain the computed pairs &amp;nbsp;*/&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%LET N = %SYSFUNC(COUNTW(&amp;amp;ODDS));&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%LET M = %eval(&amp;amp;n * (&amp;amp;n-1) / 2);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%PUT n= &amp;amp;n M= &amp;amp;m;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp;%let PAIRS =; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* initiated as empty string */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;%do i=1 %to &amp;amp;n; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%do j=%eval(&amp;amp;i+1) %to &amp;amp;n;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%let PAIRS = &amp;amp;pairs %quote(%scan(&amp;amp;odds,&amp;amp;i)),%quote(%scan(&amp;amp;odds,&amp;amp;j));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; %end; %end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; %put PAIRS= &amp;amp;pairs; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* display final computed pairs in the log */&lt;BR /&gt; &lt;BR /&gt;%mend;&lt;BR /&gt;%cre_pairs(odds=A B C D E);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) Use computed pairs to submit&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;proc npar1way edf ;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;U&gt; for each pair&lt;/U&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data _NULL_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pairs = symget('PAIRS'); &amp;nbsp; &amp;nbsp;/* &amp;nbsp;same as but cannot use &amp;amp;pairs */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pairs_count = countw(pairs , ' ');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;do i = 1 to pairs_count;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call execute('proc npar1way edf ;&amp;nbsp;class treatment;&amp;nbsp;where treatment in (' ||&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scan(pairs, i, ' ') || ');&amp;nbsp;var log_area ;&amp;nbsp;run; );&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 21:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309883#M16396</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-07T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309952#M16399</link>
      <description>&lt;P&gt;One more important step - instead of entering the &lt;STRONG&gt;arguments&lt;/STRONG&gt; manually as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;%cre_pairs(odds=&lt;STRONG&gt;A B C D E&lt;/STRONG&gt;);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it can be done by coding:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;select distinct var1 into :&lt;STRONG&gt;my_odds&lt;/STRONG&gt; seperated by ' ' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* enter your variable name instead var1 */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from have;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;%cre_pairs(&lt;STRONG&gt;odds=&amp;amp;my_odds&lt;/STRONG&gt;);&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 05:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/309952#M16399</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-08T05:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple EDF testing</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/310104#M16402</link>
      <description>&lt;P&gt;Well, this is kind of bending the rules a bit, but...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider using PROC MULTTEST, with input as the p values obtained. &amp;nbsp;See&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_multtest_examples05.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_multtest_examples05.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My&amp;nbsp;assumption here is that p values are uniformly distributed on (0, 1), and so various methods are available to adjust.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 14:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-EDF-testing/m-p/310104#M16402</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-11-08T14:54:28Z</dc:date>
    </item>
  </channel>
</rss>

