BookmarkSubscribeRSS Feed
Achieng
Quartz | Level 8

Hello SAS gurus and my biggest: smiley very-happy:,

 

I am comparing three outcome groups. 

 

I was using  Kruskal Wallis test because we have non-normal data.

 

 proc npar1way data=ALICEPAPER3MAY2018 WILCOXON;
	 class NewOutcome2015;EXACT WILCOXON / MC;
	  var Age_2005 WeightPA05;
	run;

 

To do a posthoc test, my supervisor recommended Dunnets.

 

 

I have been able to run other tests i.e just palying with SAS and I am successful, i.e Benferroni.

 

/* Performing the Bonferroni Multiple Comparisons: */

PROC GLM DATA=ALICEPAPER3MAY2018;
CLASS NewOutcome2015;
MODEL Age_2005 = NewOutcome2015;
LSMEANS NewOutcome2015 / CL PDIFF ADJUST=BON;
run;

However, but cant get DUNNETS Test, please help.

 

Please help and codes as well.

 

Thank you very much.

 

Very kind regards

 

Achieng 

 

2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Did you look in the Doc? There appears to be an ADJUST=DUNNETT option for the LSMEANS statement: http://go.documentation.sas.com/?docsetId=statug&docsetTarget=statug_glm_syntax10.htm&docsetVersion=... for PROC GLM.

Cynthia
Achieng
Quartz | Level 8
Hi, Cynthia Thank you.

I did notice it but was not giving me the correct data I was looking for.
However, after adjusting to.....

lsmeans Treatment / pdiff=controll cl adjust=dunnett;


I was bale to get resulst I want. Thnak you very much.


Can you please direct me to avideo that can help with interpretation.
Thank you.


SAS Output
The GLM Procedure
Least Squares Means
Adjustment for Multiple Comparisons: Dunnett

NewOutcome2015 Age_2005 LSMEAN H0:LSMean=Control
Pr > |t|
MHNWBoth 52.1374046
MHOBoth 49.1176471 0.1778
MetS2015 51.6000000 0.8843

NewOutcome2015 Age_2005 LSMEAN 95% Confidence Limits
MHNWBoth 52.137405 50.521274 53.753535
MHOBoth 49.117647 45.945359 52.289935
MetS2015 51.600000 49.750254 53.449746

Least Squares Means for Effect NewOutcome2015
i j Difference Between
Means Simultaneous 95% Confidence Limits
for LSMean(i)-LSMean(j)
2 1 -3.019758 -7.071581 1.032066
3 1 -0.537405 -3.332869 2.258060

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2277 views
  • 0 likes
  • 2 in conversation