Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
MaximeKurtz
Calcite | Level 5

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

2 REPLIES 2
sbxkoenk
SAS Super FREQ

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

PaigeMiller
Diamond | Level 26

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.

--
Paige Miller

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register 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
  • 2 replies
  • 4345 views
  • 3 likes
  • 3 in conversation