I was able to produce a stratified Wilcoxon test, but I can't figure out if it is also possible to obtain stratified Hodges-Lehmann estimates for the location shift.
If that option is not available, I am not sure if it would make sense to compute it as a weighted sum of the location shift for each strata? I could not find any reference on that.
Program code:
proc npar1way data=input hl wilcoxon;
CLASS treatment;
VAR variable;
EXACT hl;
STRATA strat1 strat2 / wilcoxon;
run;
Thanks!
Calling @StatDave
Check this reference out (ASA members can get around the paywall):
https://www.tandfonline.com/doi/abs/10.1198/tast.2010.08121?journalCode=utas20
The authors cover the HL aligned rank test, with some adaptive testing schemes, and are quite pleased with the results.
SteveDenham
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.