<?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 test of difference in median in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99309#M20916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;May I ask you if my interpretation of SAS results are correct.&amp;nbsp; thanks !!!&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;my data has a class variable u_rank, it takes on two values 1, and 4,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;my test variable is disclose (a continuous variable).&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;I use proc npar1way to test difference in&amp;nbsp; median of&amp;nbsp; disclose between&amp;nbsp; u_rank=1 and u_rank=4.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;see below for code (attached)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;my&amp;nbsp; interpretation is :&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;median is zero for both u_rank=1 or 4&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;I am not certain&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The NPAR1WAY shows z value to be significant. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; font-family: Arial, sans-serif;"&gt;could I conclude : even though median value of disclose is 0 for both &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;u_rank=1 and u_rank=4&lt;/SPAN&gt;&amp;nbsp; , but median test still shows significant difference between the class variable &lt;/SPAN&gt;u_rank?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;thanks !!!&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Aug 2013 03:10:35 GMT</pubDate>
    <dc:creator>LanMin</dc:creator>
    <dc:date>2013-08-04T03:10:35Z</dc:date>
    <item>
      <title>test of difference in median</title>
      <link>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99309#M20916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;May I ask you if my interpretation of SAS results are correct.&amp;nbsp; thanks !!!&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;my data has a class variable u_rank, it takes on two values 1, and 4,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;my test variable is disclose (a continuous variable).&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;I use proc npar1way to test difference in&amp;nbsp; median of&amp;nbsp; disclose between&amp;nbsp; u_rank=1 and u_rank=4.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;see below for code (attached)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;my&amp;nbsp; interpretation is :&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;median is zero for both u_rank=1 or 4&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;I am not certain&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The NPAR1WAY shows z value to be significant. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; font-family: Arial, sans-serif;"&gt;could I conclude : even though median value of disclose is 0 for both &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;u_rank=1 and u_rank=4&lt;/SPAN&gt;&amp;nbsp; , but median test still shows significant difference between the class variable &lt;/SPAN&gt;u_rank?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;thanks !!!&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 03:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99309#M20916</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-08-04T03:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: test of difference in median</title>
      <link>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99310#M20917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you could. Your data likely has a fair proportion of disclose=0 observations in both u_rank groups. Run the following simulation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;call streaminit(987676);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do u_rank = 1, 4;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i = 1 to 2520;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if mod(i, 2) then disclose = 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; &lt;/STRONG&gt;&lt;STRONG&gt;else disclose = rand("NORMAL", u_rank*0.05);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;drop i;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc univariate data=test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;class u_rank;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var disclose;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;histogram;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;&lt;STRONG&gt;proc npar1way data=test median wilcoxon;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;class u_rank;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var disclose;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 04:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99310#M20917</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-08-04T04:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: test of difference in median</title>
      <link>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99311#M20918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, PG . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 23:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/test-of-difference-in-median/m-p/99311#M20918</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-08-04T23:06:07Z</dc:date>
    </item>
  </channel>
</rss>

