<?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 Dunn's test with weighted data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Dunn-s-test-with-weighted-data/m-p/985955#M49369</link>
    <description>&lt;P&gt;Hi.&amp;nbsp;&lt;SPAN&gt;I have a dataset that I have generated weights (IPTW) for via propensity model. There are multiple treatment groups and I evaluated continuous variables via weighted Kruskal-Wallis. Now I would like to do post-hoc tests but I'm bumping into the issue of trying to run a weighted Dunn's test. I have been playing with this macro &lt;A href="http://support.sas.com/publishing/bbu/zip/60622.zip" target="_blank" rel="nofollow noopener noreferrer"&gt;(http://support.sas.com/publishing/bbu/zip/60622.zip&lt;/A&gt;&amp;nbsp;in Chapter 6) and using the weighted rank macro (&lt;A href="https://support.sas.com/techsup/notes/v8/25/090.html" target="_blank" rel="noopener"&gt;https://support.sas.com/techsup/notes/v8/25/090.html&lt;/A&gt;) in place of proc rank.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My first question is if this is feasible and whether there is a better solution than the workaround I've been using.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My second is whether I should also be sorting by my weighting variable in the weighted rank macro (i.e., proc sort data=data; by descending variable iptw; run;); I think the answer is yes. If I sort solely by my variable of interest, my rankings are a bit dependent on however I last sorted the data prior to using the macro, and I'm getting different results after I run tests on all my continuous variables and then go back through to double-check my results.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2026 21:04:59 GMT</pubDate>
    <dc:creator>t_se</dc:creator>
    <dc:date>2026-04-03T21:04:59Z</dc:date>
    <item>
      <title>Dunn's test with weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dunn-s-test-with-weighted-data/m-p/985955#M49369</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;SPAN&gt;I have a dataset that I have generated weights (IPTW) for via propensity model. There are multiple treatment groups and I evaluated continuous variables via weighted Kruskal-Wallis. Now I would like to do post-hoc tests but I'm bumping into the issue of trying to run a weighted Dunn's test. I have been playing with this macro &lt;A href="http://support.sas.com/publishing/bbu/zip/60622.zip" target="_blank" rel="nofollow noopener noreferrer"&gt;(http://support.sas.com/publishing/bbu/zip/60622.zip&lt;/A&gt;&amp;nbsp;in Chapter 6) and using the weighted rank macro (&lt;A href="https://support.sas.com/techsup/notes/v8/25/090.html" target="_blank" rel="noopener"&gt;https://support.sas.com/techsup/notes/v8/25/090.html&lt;/A&gt;) in place of proc rank.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My first question is if this is feasible and whether there is a better solution than the workaround I've been using.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My second is whether I should also be sorting by my weighting variable in the weighted rank macro (i.e., proc sort data=data; by descending variable iptw; run;); I think the answer is yes. If I sort solely by my variable of interest, my rankings are a bit dependent on however I last sorted the data prior to using the macro, and I'm getting different results after I run tests on all my continuous variables and then go back through to double-check my results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 21:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dunn-s-test-with-weighted-data/m-p/985955#M49369</guid>
      <dc:creator>t_se</dc:creator>
      <dc:date>2026-04-03T21:04:59Z</dc:date>
    </item>
  </channel>
</rss>

