<?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 Wilcoxon rank sum test: P2_MED, PL_MED, PR_MED in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Wilcoxon-rank-sum-test-P2-MED-PL-MED-PR-MED/m-p/478381#M123375</link>
    <description>&lt;P&gt;I am using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC NPAR1WAY data=Temp wilcoxon median;
Class Group;
Var POwnPriceElasticity;
output out=NPAR1WAY; 
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to compare the medians of 2 groups. Just curious, if I have a value for&amp;nbsp;PL_MED or&amp;nbsp;PR_MED, how do I know the directionallity of this? Does SAS base this on the alphabetic order of the groups? Hope this makes sense ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 14:57:26 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2018-07-16T14:57:26Z</dc:date>
    <item>
      <title>Wilcoxon rank sum test: P2_MED, PL_MED, PR_MED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wilcoxon-rank-sum-test-P2-MED-PL-MED-PR-MED/m-p/478381#M123375</link>
      <description>&lt;P&gt;I am using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC NPAR1WAY data=Temp wilcoxon median;
Class Group;
Var POwnPriceElasticity;
output out=NPAR1WAY; 
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to compare the medians of 2 groups. Just curious, if I have a value for&amp;nbsp;PL_MED or&amp;nbsp;PR_MED, how do I know the directionallity of this? Does SAS base this on the alphabetic order of the groups? Hope this makes sense ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wilcoxon-rank-sum-test-P2-MED-PL-MED-PR-MED/m-p/478381#M123375</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-07-16T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon rank sum test: P2_MED, PL_MED, PR_MED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wilcoxon-rank-sum-test-P2-MED-PL-MED-PR-MED/m-p/478423#M123388</link>
      <description>&lt;P&gt;Not the alphabetic order is relevant, but the size of the groups (smaller group prioritized) and in case of equal group sizes the observation order in the input dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To quote the &lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_npar1way_details04.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;documentation&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;To compute the linear rank statistic&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=" aa-mathtext"&gt;S&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;, PROC NPAR1WAY sums the scores of the observations in the smaller of the two samples. If both samples have the same number of observations, PROC NPAR1WAY sums those scores for the sample that appears first in the input data set."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(The decision between left- and right-sided test is, of course, based on whether &lt;EM&gt;S&lt;/EM&gt; is greater than (--&amp;gt; right-sided) or less than (--&amp;gt; left-sided) its expected value under the null hypothesis; in case of equality: left-sided test.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit: Just to avoid any misconceptions: The abovementioned "decision between left- and right-sided test" refers to which of the two variables PL_MED and PR_MED in the output dataset is populated, &lt;EM&gt;not&lt;/EM&gt; to the appropriateness of these statistical&amp;nbsp;tests.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 17:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wilcoxon-rank-sum-test-P2-MED-PL-MED-PR-MED/m-p/478423#M123388</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-07-16T17:43:23Z</dc:date>
    </item>
  </channel>
</rss>

