<?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 weighted wilcoxon rank sums in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548704#M27389</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to test differences in predicted rank sum using proc npar1way like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc npar1way data=have wilcoxon;&lt;BR /&gt;class a;&lt;BR /&gt;var b;&lt;BR /&gt;weight z;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, by default this is not possible in SAS:&amp;nbsp;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the the differences in predicted means using ttest and the same code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc ttest data=have;&lt;BR /&gt;class a;&lt;BR /&gt;var b;&lt;BR /&gt;weight z;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am interested in the differences in the predicted rank sum values. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 07:58:16 GMT</pubDate>
    <dc:creator>greveam</dc:creator>
    <dc:date>2019-04-05T07:58:16Z</dc:date>
    <item>
      <title>weighted wilcoxon rank sums</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548704#M27389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to test differences in predicted rank sum using proc npar1way like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc npar1way data=have wilcoxon;&lt;BR /&gt;class a;&lt;BR /&gt;var b;&lt;BR /&gt;weight z;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, by default this is not possible in SAS:&amp;nbsp;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the the differences in predicted means using ttest and the same code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc ttest data=have;&lt;BR /&gt;class a;&lt;BR /&gt;var b;&lt;BR /&gt;weight z;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am interested in the differences in the predicted rank sum values. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 07:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548704#M27389</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2019-04-05T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: weighted wilcoxon rank sums</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548760#M27394</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/10/02/weight-variables-in-statistics-sas.html" target="_self"&gt;There are many kinds of weights.&lt;/A&gt; What does the weight variable (z) represent? That is, what is the physical or statistical interpretation of z?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 13:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548760#M27394</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-04-05T13:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: weighted wilcoxon rank sums</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548771#M27395</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;z is the probability of being in group a (my class variable in proc npar1way which has the values 0 or 1) given c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=have namelen=32 plots=roc;&lt;BR /&gt;model a(event='1') = c / stb;&lt;BR /&gt;output out=want prob=z;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question relates to this paper:&amp;nbsp;&lt;A href="https://www.nejm.org/doi/full/10.1056/nejmoa1110717" target="_blank"&gt;https://www.nejm.org/doi/full/10.1056/nejmoa1110717&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The authors state that they used wilcoxon rank sum tests to compare differences in two treatment regiments weighted by the probability of receiving one of the treatments (same as I am doing above). I don't understand the next step - how is it possible to weight the wilcoxon rank sum test by the probability of the observed level of the classification variable?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 13:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548771#M27395</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2019-04-05T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: weighted wilcoxon rank sums</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548773#M27396</link>
      <description>&lt;P&gt;That is: "the wilcoxon rank sum test should compare differences in predicted rank sums of b for the classification variable a based on the weight statement z (probability of a given c)".&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 13:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548773#M27396</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2019-04-05T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: weighted wilcoxon rank sums</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548776#M27397</link>
      <description>&lt;P&gt;Please also see:&amp;nbsp;&lt;A href="https://stats.stackexchange.com/questions/67364/weighted-wilcoxon-ranksum-test#new-answer?newreg=9171852dfa82430baef6b8055609eb70" target="_blank"&gt;https://stats.stackexchange.com/questions/67364/weighted-wilcoxon-ranksum-test#new-answer?newreg=9171852dfa82430baef6b8055609eb70&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 14:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548776#M27397</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2019-04-05T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: weighted wilcoxon rank sums</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548930#M27398</link>
      <description>&lt;P&gt;Hi Rick, sorry to be bugging you about this. It seems there is no easy way to do a test for differences in predicted rank sum values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what do you think about a weighted&amp;nbsp;jonckheere-terpstra test instead? b is continuous non-normal - but from what I can find on the internet, the current version of proc freq with a jt option can handle ties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;BR /&gt;table a*b / jt;&lt;BR /&gt;weight z;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 19:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/weighted-wilcoxon-rank-sums/m-p/548930#M27398</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2019-04-05T19:50:33Z</dc:date>
    </item>
  </channel>
</rss>

