<?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: How do I set up contrasts in npar1way? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377065#M19778</link>
    <description>&lt;P&gt;Dear Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you, now I know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is evening here and I can answer properly only tomorrow. In the meanwhile, I have a couple of preliminary questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What do you mean by 'provide a reference'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My data is in an Excel file (14 lines); would it be alright just to copy it (together with the sas program that reads it and the npar1way code) so the reader can get the idea, or should I convert it to an actual SAS data statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2017 16:34:23 GMT</pubDate>
    <dc:creator>normanbg</dc:creator>
    <dc:date>2017-07-18T16:34:23Z</dc:date>
    <item>
      <title>How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376313#M19745</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a data set consisting of 4 independent samples: W_C, W_T, M_C, M_T. I wish to test the difference (W_C - W_T) - (M_C - M_T). Normally I would do a two-way ANOVA and look at the interaction term, but my samples sizes are very small.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;I thought of Kruskal-Wallis in npar1way with &lt;EM&gt;apriori&lt;/EM&gt; contrasts of the form&lt;BR /&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;1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;-1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;-1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;but I can't seem to find any way to set this up.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;My experience with SAS (long but limited) has taught me that it can do just about anything, and do it well, if you can figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can anybody help (SAS University Edition 9.4)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 07:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376313#M19745</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-16T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376342#M19746</link>
      <description>&lt;P&gt;Not sure if the following exactly matches what you are trying to do, but I think it may come close:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/proc-npar1way-contrasts-statement/td-p/265531" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/proc-npar1way-contrasts-statement/td-p/265531&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 15:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376342#M19746</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-07-16T15:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376423#M19747</link>
      <description>&lt;P&gt;Dear Art,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, before posting, I did a search of the forum and came up with the exchange you refer me to. Unfortunately, the solution there is for multiple pairwise comparisons whereas I require a difference of a difference. I couldn't (and still can't) see how to get from the one to the other—can you?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 06:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376423#M19747</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-17T06:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376540#M19748</link>
      <description>&lt;P&gt;Since you have a small data, why not try EXACT statement of PROC NPAR1WAY or PROC FREQ ?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 13:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376540#M19748</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-17T13:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376618#M19752</link>
      <description>&lt;P&gt;Dear Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I do use EXACT in Npar1way but can only figure out how to test all 4 samples using Kruskal-Wallis or how to compare various pairs using a BY variable; I would be very grateful if you could be more specific on how to test the difference of a difference: (D-C) - (B-A).&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376618#M19752</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-17T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376968#M19769</link>
      <description>&lt;P&gt;Sorry. I am not expert about it. I would leave it to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; @lvm &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/376968#M19769</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-18T12:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377047#M19776</link>
      <description>&lt;P&gt;Can I turn to them directly or do I have to wait (and hope) that one of them will chance by?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377047#M19776</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-18T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377057#M19777</link>
      <description>&lt;P&gt;When someone is mentioned by name in a post, they receive a notification. It is a breach of etiquette to explicitly contact someone you don't know for help. Be patient: if&amp;nbsp;someone has the knowledge and the time, they will offer a suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you provide a reference and sample data, you are more likely to get a response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how to do what you ask. You might need to transform your data from wide to long and use two group variables to encode the data, like this&lt;/P&gt;
&lt;P&gt;CLASS Group1 Group2;&lt;/P&gt;
&lt;P&gt;VAR Value;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377057#M19777</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-18T15:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377065#M19778</link>
      <description>&lt;P&gt;Dear Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you, now I know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is evening here and I can answer properly only tomorrow. In the meanwhile, I have a couple of preliminary questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What do you mean by 'provide a reference'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My data is in an Excel file (14 lines); would it be alright just to copy it (together with the sas program that reads it and the npar1way code) so the reader can get the idea, or should I convert it to an actual SAS data statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 16:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377065#M19778</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-18T16:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377084#M19780</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&amp;gt; provide a reference&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;A reference is a&amp;nbsp;book, article, or web site where the reader can go to learn more about the question you are asking. &amp;nbsp;For example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"I want to run the SuperCool Test from Jones and Smith's 1999 textbook "Cool Statistical Tests" &amp;nbsp;(2nd ed, p 129)"&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;"At the web site &lt;A href="http://www.SuperCoolTest.net" target="_blank"&gt;www.SuperCoolTest.net&lt;/A&gt; they show how to conduct the SuperCool Test in [STATA, MATLAB, R, SPSS, PYTHON,...].&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;"The example in the SAS documentation [LINK] shows how to do the SuperCool analysis. However,&amp;nbsp;my data has missing values and I&amp;nbsp;get the following error: ..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt; how to supply data&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Data on the forums should be supplied in the form of a SAS DATA step. Some people object to downloading Office files because of a perceived security risk. You can use PROC IMPORT to create a SAS data set, then &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;use a macro program to generate a SAS&amp;nbsp;DATA step.&lt;/A&gt;&amp;nbsp;You can also use any of the 200 &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_sashelp_sect001.htm" target="_self"&gt;SASHELP data sets, which are distributed with SAS &lt;/A&gt;. For example, &lt;SPAN&gt;SASHELP.Cars,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SASHELP.Class,&amp;nbsp;SASHELP.Iris,&amp;nbsp;SASHELP.BWeight, etc,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 17:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377084#M19780</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-18T17:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377089#M19781</link>
      <description>&lt;P&gt;Oh, those kinds of references. I know all about them, I'm a scientist. I thought it was something specific to SAS.&lt;/P&gt;&lt;P&gt;I'll be back tomorrow, with a full (short, but functioning) sas program and a little of the science behind it.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377089#M19781</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-18T18:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377212#M19789</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The purpose of the experiment is to determine whether a particular drug (the treatment T) has a greater effect in genetically modified mice (Mut) than in normal mice (Wild-Type).&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Four independent groups of mice are selected: normal untreated (WT_C), normal with drug (WT_T), mutants untreated (Mut_C), and mutants with drug (Mut_T). The variable under study is a particular parameter of cardiac function we will label 'X'.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;It is well-known from the literature that T decreases X in WT mice. There is less evidence for this mutant strain, but here too T appears to decrease X. When X is (more or less) normally distributed and sample sizes are adequate, we would use a two-way ANOVA&lt;BR /&gt;&lt;BR /&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;&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; treatment&lt;BR /&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;&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; no&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; yes&lt;BR /&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;wild-type&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WT_C&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_T&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; genome&lt;BR /&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;mutant&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mut_C&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_T&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;and test the interaction term:&amp;nbsp;&amp;nbsp; &amp;nbsp;genome x treatment.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;But the experiment is long and difficult and costly, and our entire sample size is only 14. So we have no choice but to use an exact nonparametric test, and I thought of npar1way with apriori contrasts of the form&lt;BR /&gt;&lt;BR /&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;&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;1&amp;nbsp;&amp;nbsp; &amp;nbsp;-1&amp;nbsp;&amp;nbsp; &amp;nbsp;-1&amp;nbsp;&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;&lt;BR /&gt;but I can find no way to set this up, basically (WT_C - WT_T) - (Mut_C - Mut_T).&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;The short sas program below produces two exact Mann-Whitney tests, WT_C versus WT_T and Mut_C versus Mut_T; without the 'by' statement, one gets the exact Kruskal-Wallis test for all 4 groups. The number of cases in each group is correct (3,5,2,4) but I have not used the original X values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS RTF File&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ="/folders/myshortcuts/Norman/Ahmad/test-4.rtf" bodytitle;&lt;BR /&gt;data ahmad;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;input G$ X W;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cards;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_C 25 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_C 24 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_C 23 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_T 22 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_T 21 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_T 20 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_T 19 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WT_T 18 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_C 23 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_C 22 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_T 15 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_T 14 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_T 13 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mut_T 12 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;;&lt;BR /&gt;run;&lt;BR /&gt;proc npar1way data=ahmad plots=none wilcoxon;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class G;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;by W;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;exact wilcoxon;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var X;&lt;BR /&gt;run;&lt;BR /&gt;ODS RTF close;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 09:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377212#M19789</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-19T09:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377316#M19792</link>
      <description>&lt;P&gt;I do not&amp;nbsp;know how to do this analysis in NPAR1WAY; perhaps&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;might have an idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will throw out an alternative suggestion: use QUANTREG, which has an ESTIMATE statement. The background/rationale for my suggestion is given in the article &lt;A href="http://blogs.sas.com/content/iml/2017/02/22/difference-of-medians-sas.html" target="_self"&gt;"Quantile estimates and the difference of medians in SAS."&lt;/A&gt;&amp;nbsp;The estimate&amp;nbsp;you are looking for is given below (I think, please double check my ESTIMATE statement, which is different from the one you suggested). Note that I changed the class levels to better reflect the two class variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
length G $3. W $1. Group $5.;
 input G X W;
 Group = cats(G, '_', put(W,1.)); /* create group variable that combines the 4 levels */
datalines;
WT  25 C
WT  24 C
WT  23 C
WT  22 T
WT  21 T
WT  20 T
WT  19 T
WT  18 T
Mut 23 C
Mut 22 C
Mut 15 T
Mut 14 T
Mut 13 T
Mut 12 T
;

proc quantreg data=Have;
 class Group;
 model X = Group / quantile=0.5;
 estimate 'Difference of Differences' Group -1 1 1 -1 / CL;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377316#M19792</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-19T13:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377387#M19794</link>
      <description>&lt;P&gt;I'll look into it tomorrow. What do you think of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc multitest data=ahmad perm;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class G;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contrast 'delMut - delWT' -1 1 1 -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; test mean (X);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to follow proc npar1way (without the 'by' statement, of course), as suggested by Richter &amp;amp; Higgins (2006): "A SAS Companion for Nonparametric Statistics", Thomson Brooks/Cole, Belmont, CA, p.28?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377387#M19794</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-19T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377732#M19815</link>
      <description>&lt;P&gt;Dear Rick,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Most of my (recent) SAS experience has been with version 9.1.3 and I was not familiar with QuantReg. I read the reference you gave and looked at the entry in the 9.4 manual. QuantReg would appear to be a very useful and versatile addition to my nonparametric arsenal, and I plan to devote more time to it when this project is over.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;But something is wrong with the code you suggest, and I don't (yet) know the program well enough to uncover what that is. I ran the data using QuantReg and then with npar1way followed by multtest as described in the little book by Richter &amp;amp; Higgins I cited above—the results were very very different: a p-value of 0.0542 from QuantReg, a p-value of 0.0075 (raw) and 0.0095 (permutation) from multtest.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;I then ran the Kruskal-Wallis routine implemented by NCSS (NCSS 10 Statistical Software (2015). NCSS, LLC. Kaysville, Utah) with custom contrasts; using 1 -1 -1 1, I got a p-value of 0.0075 here too.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;So why, you might ask, do I bother with SAS when I can get what I want with NCSS? Well, not quite. The p-value of 0.0075 provided by NCSS is the asymptotic value, and I am (was) looking for an exact value. That was why I turned to SAS&amp;gt;npar1way and that, I believe, is what I have now found in multtest (permutation).&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;I would very much like your opinion on the npar1way&amp;gt;multtest combination.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377732#M19815</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-20T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377805#M19821</link>
      <description>&lt;P&gt;You ask good questions, and unfortunately&amp;nbsp;I don't have all the answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;I would very much like your opinion on the npar1way&amp;gt;multtest combination.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My opinion is that you should ask someone who knows more about those procedures than I do. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; something is wrong with the code you suggest. I ran the data using QuantReg and then with npar1way followed by multtest. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; The results were very very different: a p-value of 0.0542 from QuantReg vs a p-value of 0.0075 from multtest&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me just say that these procedures are using different statistics and running different tests. For this very small data set (14 obs, joint levels have between 2 and 5 obs), the standard errors that PROC QUANTREG produces are larger than you are getting&amp;nbsp;from your other method. &amp;nbsp;If you are happy with the other method and&amp;nbsp;its assumptions, feel free to accept its conclusion.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377805#M19821</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-20T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up contrasts in npar1way?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377812#M19824</link>
      <description>Thank you for all the time you devoted to my problem.</description>
      <pubDate>Thu, 20 Jul 2017 15:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-set-up-contrasts-in-npar1way/m-p/377812#M19824</guid>
      <dc:creator>normanbg</dc:creator>
      <dc:date>2017-07-20T15:33:30Z</dc:date>
    </item>
  </channel>
</rss>

