Hi all,
I have a dataset that is seperated into 4 groups (disease1, disease2, disease3, disease4). For each individual, I have several variables to test (biochemical variables such as creatinine, urea...).
I coded a npar1way procedure to perform a Kruskal Wallis test to determine if there was a statistical difference for a given variable between the 4 groups:
proc npar1way
data=data_descriptive_workingfile wilcoxon;
var creatinine ;
class group;
run;
This worked well.
I know want to compare the data within the classes : perform a Mann Whitney U Test that compares creatinine between Disease1 and Disease2, Disease 1 and Disease3, etc. I do not want to perform a Steel-Dwass-Critchlow-Fligner test because I would like to use another type of post-hoc analysis
Is there any way to code that ?
I am running on Sas OnDemand for Academics
Many thanks in advance for your help,
Maxime
Hello,
Is there any particular reason you are doing a non-parametric analysis for this research question?
If the Statistical Assumptions for Using PROC GLM ( https://go.documentation.sas.com/doc/en/statug/15.2/statug_glm_details01.htm ) are met, I would do this ANOVA with PROC GLM.
Then use LSMEANS statement for performing multiple comparisons.
Thanks,
Koen
One way to do a pairwise comparison of means following Kruskal Wallis is called "Dunn's Test". Code for this is here: https://communities.sas.com/t5/Statistical-Procedures/Dunn-s-Test/m-p/89558#M4394 As stated at that link, there are many macros for this that can be found via your favorite internet search engine.
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →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.