Contributor
Posts: 30

adjusting for selected multiple comparisons

Hi,

I am trying to compare value from different time points to one specific time point for each individual.  For example, for each individual, measurements were made every 15s starting from 30s to 3min (i.e. 11 measurements).  I have 50 subjects in total.  I want to compare all the different time measurements to the measurement at time 2:30 (ie. the 9th time point).  If I perform a regular ANOVA with repeated measures with Tukey post-hoc, it will make adjustments for 55 comparisons (11x10/2) so everything will come out non-significant.  Below is the code that I used...

data long;

input id sex\$ @@;

do timept = 1 to 13;

input measurement @@;

output;

end;

proc mixed data=long;

class timept;

model measurement = timept;

repeated timept / subject=id;

lsmeans timept / adjust=tukey pdiff;

run;

However, what I wanted to compare are point 1 to 9, 2 to 9 3 to 9, .... 10 to 9, 11 to 9.  So that's a total of 10 comparisons, not 55 comparisons (for complete comparisons).  Is there a way to adjust for just 10 comparisons?

thanks for your help!

ming

Posts: 5,523

Re: adjusting for selected multiple comparisons

Try

lsmeans timept / adjust=Tukey pdiff=control('9');

PG

PG
Contributor
Posts: 30

Re: adjusting for selected multiple comparisons

Hi,

I got this error message and the output was the same as without the "pdiff=control('9')".

WARNING: Tukey's adjustment only applies to all pairwise differences, so these are taken.

do I need to rearrange my data differently?

thanks.

ming

Contributor
Posts: 30

Re: adjusting for selected multiple comparisons

Hi,

If I take out the option adjust=tukey so...

lsmeans timept / diff=control('9');

then I get an output that's what I want.  However, I don't think this corrects for multiple comparison?

thanks.

ming

Super User
Posts: 13,508

Re: adjusting for selected multiple comparisons

I don't use proc mixed but if you want to completely ignore the other time frames exclude them from the analysis dataset for the procedure:

Proc mixed data=long (where= (timept <= 9))

might do what you're looking for.

Posts: 5,523

Re: adjusting for selected multiple comparisons

Use

see section Comparing All Treatments to a Control in SAS/STAT(R) 9.3 User's Guide

PG

PG