BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi all,

I am facing a problem with Dunnett`s multiple comparisons test with a reference/control group.

Here is the code :

ods output lsmeans = _tpvalues;
proc glm data=_talldata_wide;
title 'Pair-wise comparison with Dunnett correction';
class _pooled ;
model _L21 _L22 = _pooled ;
lsmeans _pooled /pdiff = control ("0") adjust=Dunnett;
run;
quit;
ods trace off;



_pooled is the variable that contains the dose group codes, but control group coded as 0 than its actual value.

For Eg :

dosegrpc _pooled
------------- ------------
5 0 /*coded as 0 since its Control Group*/
15 15 /* treated group */
50 50 /* treated group */


Now say you have one control group and one treated Group

_pooled
------------
0
15


The above proc glm, produces a P-value against dose_group_code = 0, rather than against 0. This is the problem.

Can anybody suggest what is going wrong here. Your help would be greatly appreciated !

Thanks,

Neeral Beladia
1 REPLY 1
1162
Calcite | Level 5
I'm not sure I understand what you are trying to achieve, but I understand what's happening in your code. You've identified _pooled as a class variable. The values in this variable will be treated as categorical rather than continuous.

If you want these values treated as numeric values instead of categories, you should remove the class statement. If you want to use the original values (5, 15, 50), then you should use the dosegrpc variable in your proc glm.

Hope this helps.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 1 reply
  • 1150 views
  • 0 likes
  • 2 in conversation