<?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: Test the difference for median ? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152889#M8003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bivariable Normal Distribution for TTEST, otherwise for Wilcoxon .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 10:16:32 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-02-05T10:16:32Z</dc:date>
    <item>
      <title>Test the difference for median ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152887#M8001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very basic question, but could not find the convincing answer from Interest.&lt;/P&gt;&lt;P&gt;I have two groups with different number of observations.&amp;nbsp; I have already got the mean and median of the two group and the figure shows group A is larger than group B. But I do not know whether these are significant or not. So I want to do the univariate test to look at whether they have the same mean and same median. According to papers, the basic steps is to do t-test for mean and Wilcoxon test for median. But I have several questions regarding this:&lt;/P&gt;&lt;P&gt;1. Shall I use the one-sided t-test or two-sided t-test? What I did is using the coed below:&lt;/P&gt;&lt;P&gt;Proc ttest data=;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this give me the one-sided t-test or two-sided t-test? And what is the common practice in the paper when they show whether the two group has different mean? one-sided or two-sided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. About the Wilcoxon test to test whether they have same median, shall I use &lt;SPAN style="font-weight: bold;"&gt;Wilcoxon rank-sum test&lt;/SPAN&gt; or &lt;SPAN style="font-weight: bold;"&gt;Wilcoxon signed-rank test&lt;/SPAN&gt;? I did see both but I do not know which to use.&lt;/P&gt;&lt;P&gt;And also when I read the result from SAS, shall I use the one-sided result or two-sided? I used the following code:&lt;/P&gt;&lt;P&gt;proc npar1way data = wilcoxon;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really do not know which is the right way. I really appreciate your help. Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 15:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152887#M8001</guid>
      <dc:creator>MR_Xishuai</dc:creator>
      <dc:date>2015-02-04T15:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Test the difference for median ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152888#M8002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re One sided/Two Sided P-Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your hypothesis is that &lt;/P&gt;&lt;P&gt;H0: X1=X2&lt;/P&gt;&lt;P&gt;H1: X1&amp;gt;X2 or (X1&amp;lt;X2) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you use a one sided p-value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your hypothesis is:&lt;/P&gt;&lt;P&gt;H0: X1=X2&lt;/P&gt;&lt;P&gt;H1: X1 ne X2 &lt;/P&gt;&lt;P&gt;then you use a two sided p-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't say which test you should use, but I highly recommend graphing your data, via box plot or violin plot to examine the distributions as well as testing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 15:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152888#M8002</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-04T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Test the difference for median ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152889#M8003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bivariable Normal Distribution for TTEST, otherwise for Wilcoxon .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 10:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152889#M8003</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-02-05T10:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Test the difference for median ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152890#M8004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Wilcoxon rank-sum test (also known as the Mann-Whitney test) is the test for basic comparison of two groups for difference in the median.&amp;nbsp; It assumes that the data are measured in the interval or ratio scale.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Wilcoxon signed-rank test is a one sample test that the median is a constant (typically 0, as it is often used for difference scores).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-the-difference-for-median/m-p/152890#M8004</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2015-02-06T14:03:52Z</dc:date>
    </item>
  </channel>
</rss>

