I am using the Dunn's macro that was posted on a previous community post (https://communities.sas.com/t5/SAS-Statistical-Procedures/Dunn-s-Test/m-p/89557#M4393). I am wondering if there is a way to adapt the code so that it will output the p-value for each pairwise comparison performed? Thanks in advance.
Probably. What have you tried.
And since the post references a ZIP file containing lots of stuff you might want to extract the bit YOU are attempting to modify instead of having us guess.
I have a similar question. I used the dscf option in proc npar1way and obtained the table below. Then I found the referenced dscf macro and compared outputs. The macro does not give the pvalue so I assumed that the dscf value was gaussian normal and used my calculator to find the pvalue. However looking at the macro, I think it has a studentized range distribution. For a one-way analysis of 40 observations put in 4 groups of 10 I need to input the df. That is 40-03=37?
The cutoff at alpha=.05(.05/6?) is 3.63315. The p-value computed below is .053681? Why is not not less than.05?
data temp;
qalpha=probmc("RANGE",3.74730,.,40,4);
qalpha2=1-qalpha;
proc print; run;
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.