Williams design 3-way [Design Issues]
❝ I was a little bit hesitant to answer, as I am and likely will remain a noob in the statistical background. Maybe I also misunderstand your question, which is quite possible.
❝ But there are a lot of people around here to correct the answer, if necessary, and its SOP-Friday...
❝
❝ I think I get your point, but I also think that the period effect is implemented above.
❝ The numbers already include both as mean=µ+π = treatment + period effect.
Hi Relaxation and Helmut,
the period effect was taken into account by Helmut when generating the data, but not when analysing them.
I am not able to explicitly describe each single step behind the estimation of the regression model (this would take some time!), but I will share with you the SAS code replicating the example.
Some notes:
- Treatments are coded as 1-2-3 instead of A-B-C.
- Without loss of generality, I am assuming 6 subjects per sequence and with the PARMS statement in the MIXED procedure I keep the residual variance fixed at 10.
- In the first MIXED procedure a model not including the period effect is estimated, while in the second one the model includes the period effect.
data a01 (drop=i t1-t3);
input t1 t2 t3;
seq+1;
do i=1 to 6;
subj+1;
period=1; tmt=t1; output;
period=2; tmt=t2; output;
period=3; tmt=t3; output;
end;
datalines;
1 2 3
2 1 3
3 1 2
3 2 1
;
run;
data a02;
set a01;
y=1*(period=1)+.5*(period=2)+1.5*(period=3);
run;
proc mixed data=a02;
class seq subj tmt;
model y = seq subj(seq) tmt;
parms 10 / hold=1;
lsmeans tmt / diff;
run;
proc mixed data=a02;
class seq subj period tmt;
model y = seq subj(seq) period tmt;
parms 10 / hold=1;
lsmeans tmt / diff;
run;
Estimated treatment differences (SE) by the first model (no period effect):
- A vs. B: 3.89E-16 (0.9129)
- A vs. C: -0.3750 (0.9129)
- B vs. C: -0.3750 (0.9129)
Estimated treatment differences (SE) by the second model (period effect included):
- A vs. B: 3.7E-16 (0.9129)
- A vs. C: -753E-17 (1.0206)
- B vs. C: -79E-16 (1.0206)
We may notice that in the second model:
- The estimate of the treatment effect is always practically 0, therefore unbiased.
- SEs are not identical as the design is not balanced for period.
—
Kind regards,
Stefano
Kind regards,
Stefano
Complete thread:
- Three-way crossover BABE Studies acfalcao 2007-09-16 22:34 [Design Issues]
- Three-way crossover example data set Helmut 2007-09-17 20:47
- Three-way crossover example data set acfalcao 2007-09-17 23:02
- Three-way crossover example data set Helmut 2007-09-18 12:47
- Three-way crossover (WinNonlin) Nirali 2007-09-21 06:49
- Three-way crossover (WinNonlin) Helmut 2007-09-21 13:04
- Three-way crossover (WinNonlin) Nirali 2007-09-25 08:05
- Three-way crossover (WinNonlin) Helmut 2007-09-25 13:15
- Three-way crossover (WinNonlin) Nirali 2007-09-25 08:05
- Three-way crossover (WinNonlin) Helmut 2007-09-21 13:04
- Three-way crossover example data set Irene_I 2018-06-07 11:09
- Three-way crossover example data set Helmut 2018-06-07 13:04
- Three-way crossover example data set Irene_I 2018-06-08 11:09
- Three-way crossover example data set Irene_I 2018-06-12 09:21
- Leave-One-Out (IBD) Helmut 2018-06-12 12:42
- Leave-One-Out (IBD) Irene_I 2018-06-13 05:02
- Impact of pooled variance (bias, CI) Helmut 2018-06-13 15:02
- carry (over?) d_labes 2018-06-13 15:31
- Leave-One-Out (IBD) Irene_I 2018-06-13 05:02
- Leave-One-Out (IBD) Helmut 2018-06-12 12:42
- Three-way crossover example data set Helmut 2018-06-07 13:04
- Three-way crossover (WinNonlin) Nirali 2007-09-21 06:49
- Three-way crossover example data set Helmut 2007-09-18 12:47
- Pseudo-periods ElAlumno 2019-03-14 23:40
- Pseudo-periods Helmut 2019-03-15 00:47
- Two‐at‐a‐Time analysis in R ElAlumno 2019-03-22 21:59
- fixed & mixed (dammit!) and a request to SASians Helmut 2019-03-23 01:03
- Pooled vs IBD T-R in SAS from non-SASian mittyri 2019-03-23 23:13
- Pooled vs IBD T-R in SAS from non-SASian Helmut 2019-03-23 23:36
- mixed in R mittyri 2019-03-23 23:50
- mixed in R (EMA B ≠ FDA) Helmut 2019-03-24 01:23
- Pooled vs IBD T-R in SAS from non-SASian mittyri 2019-03-23 23:13
- fixed & mixed (dammit!) and a request to SASians Helmut 2019-03-23 01:03
- Two‐at‐a‐Time analysis in R ElAlumno 2019-03-22 21:59
- Pseudo-periods Helmut 2019-03-15 00:47
- Williams design 3-way Brus 2021-06-09 16:48
- Williams design 3-way Helmut 2021-06-09 17:48
- Williams design 3-way Brus 2021-06-10 14:33
- Williams design 3-way Helmut 2021-06-10 15:03
- Williams design 3-way vezz 2021-06-10 17:23
- Williams design 3-way Helmut 2021-06-10 20:14
- Williams design 3-way vezz 2021-06-11 09:11
- Williams design 3-way Brus 2021-06-11 12:19
- Williams design 3-way Relaxation 2021-06-11 12:42
- Period effects in general Helmut 2021-06-11 15:41
- Williams design 3-wayvezz 2021-06-11 16:56
- Williams design 3-way vezz 2021-06-11 09:11
- Williams design 3-way Helmut 2021-06-10 20:14
- Williams design 3-way vezz 2021-06-10 17:23
- Williams design 3-way Helmut 2021-06-10 15:03
- Williams design 3-way Brus 2021-06-10 14:33
- Williams design 3-way Helmut 2021-06-09 17:48
- Three-way crossover example data set acfalcao 2007-09-17 23:02
- Three-way crossover example data set Helmut 2007-09-17 20:47