BookmarkSubscribeRSS Feed
t_se
Fluorite | Level 6

Hi. 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 (http://support.sas.com/publishing/bbu/zip/60622.zip in Chapter 6) and using the weighted rank macro (https://support.sas.com/techsup/notes/v8/25/090.html) in place of proc rank. 

 

My first question is if this is feasible and whether there is a better solution than the workaround I've been using.

 

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.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 297 views
  • 0 likes
  • 1 in conversation