Professional Documents
Culture Documents
RAMI SHAMSHIRI
UFID#: 9021-3353
Part1
Response: Clearance of theophyline Factor A: popular heartburn medication: Placebo/Tagment/Pepcid Factor B: Drug: Theophylline Subjects: 14 patients suffering from chronic obstructive pulmonary disorder Goal: To compare the true population mean theophylline clearances in the treatment groups Treatment groups: 1. Theophylline/Placebo (i=1) 2. Theophylline/Tagamet (i=2) 3. Theophylline/Pepcid (i=3) Answer: Here we have t=3 treatments (groups) to be compared. We also have b=14 blocks (subjects). The outcome (Response) is Clearance of theophyline and is labeled Yij which means when treatment i is assigned to block j. ai : Effect of treatment i bj : Effect of treatment j ij: Random error This problem can be modeled as below: (Block effects and random errors independent):
Yij = + i + j + ij = i + j + ij
t
i =1
=0 j ~
(0, )
2 b
ij ~
(0, )
2 e
Questions: 1- Give the sample means for each treatment: Answer: From SAS
N intagnt Obs Mean 1 14 3.0792857 2 14 3.1592857
3 14 2.2557143
From Excel: Treatment groups Theophylline/Placebo (i=1) Theophylline/Tagamet (i=2) Theophylline/Pepcid (i=3) Treatment Mean 3.079285714 3.159285714 2.255714286
2- Give the sample means for each subject: Answer: From Excel: 1
5.88 5.13 3.69
2
5.89 7.04 3.61
3
1.46 1.46 1.15
4
4.05 4.44 4.02
5
1.09 1.15 1
6
2.59 2.11 1.75
7
1.69 2.12 1.45
8
3.16 3.25 2.59
9
2.06 2.11 1.57
10
4.59 5.2 2.34
11
2.08 1.98 1.31
12
2.61 2.38 2.43
13
3.42 3.53 2.33
14
2.54 2.33 2.34
4.9
F = MST/MSE
TSS = i =1 j =1 yij y ..
= 87.41 df Total = bt 1 = 41 df T = t 1 = 2 df B = b 1 = 13 = TSS SST SSB = 87.41 7.01 71.81 = 8.59 df E = (b 1)(t 1) = 26
( SSB = t (y SSE = (y
t b j =1
SST = bi =1 y i. y ..
.j
) y )
..
= 7.01 = 71.81
ij
y i. y . j + y ..
Source
SS SST=7.01
df 2 13 26 41
F = 10.59
DF 15 26 41
F Value 15.89
Pr > F <.0001
DF 2 13
4- Test the null hypothesis that the 3 treatment means are all equal (which implies neither Tagamet or Pepcid interact with theophylline) versus the alternative that the true means are not all equal. (=0.05) Answer: Test for differences among treatment effects: H0: a1 = ... = at = 0 (m1 = ... = mt ) HA: Not all ai = 0 (Not all mi are equal)
P val : P ( F Fobs )
F-obs= 10.59 => P-value: 0.0004 <0.05 => Reject H0 F-critical=F0.05,2,26 = (From F-tables)=3.37 F-obs= 10.59 is larger than F-critical=F0.05,2,26=3.37, or it s equivalent to say that The P-value from the Test statistic is smaller than 0.05 significant level, thus we reject the null hypothesis and conclude that Not all the 3 treatment means are equal. 5- Use Tukeys method to compare all pairs of treatment means with an experimentwise error rate of E=0.05. Answe: Since we have rejected the H0 and concluded differences exist among the treatment means, we can now use Tukeys method to determine which treatments differ significantly. t= number of treatments n= total number of observations=bt 4
, ,
0.33
0.54 Confidence Interval (-0.62,0.46) (-0.02,1.06) (0.05,1.133) Conclusion NSD Pl>Pe T>P
Alpha 0.05 Error Degrees of Freedom 26 Error Mean Square 0.330721 Critical Value of Studentized Range 3.51417 Minimum Significant Difference 0.5401 Means with the same letter are not significantly different. Tukey Grouping Mean N intagnt A A A B 3.1593 3.0793 2.2557 14 14 14 2 1 3
6-
Give the relative efficiency of the RBD to CRD for this experiment. How many subjects would be needed per treatment for CRD to give treatment means estimates with the precision of this RBD? Answer: The relative efficiency of using this design as opposed to a Completely Randomized Design is obtained as:
t = 3 b = 14 MSB = 5.525 MSE = 0.33 RE ( RCB, CRD ) = (b 1) MSB + b(t 1) MSE 13(5.52) + 14(2)(0.33) 81 = = = 5.98 (bt 1) MSE (14(3) 1)(0.33) 13.53
We will need 5.98 times as many subject per treatment for CRD to give Treatment means estimate with the precision of this RBD. 14(5.98) 84 subject per treatment 3(84) = 252 total subjects 7- Qualitatively, what is the studys implications?
Answer:Here we compared the mean theophylline clearances when it is taken with each of the three drugs, Placebo, Tagment, Pepcid. Here Randomized Block Design was used and we controlled for the subject-to-subject variation when comparing the three treatments. We tested for treatment effects, and when we realized that not all of the treatments have equal effects, we used the Tukeys method to make pairwise comparisons among the three drugs. This result showed that Placebo and tagamet has a greater effect than Pepcid.
Part 2Here we have more than one set of treatments that wed like to compare simultaneously. If we wish to measure the interaction we will have to have more than one measurement (replicate) corresponding to each combination of levels of the 2 factors. Response: 85 day weight gains in the rats Factor A: Model (a=2 Levels) Male (i=1) Female (i=2) Factor B: dosing regimens (b=6 Levels) Control (0 mg/kg/day) Subcutaneous Injection (1.0 mg/kg/day) Oral Glavage (0.1 mg/kg/day) Oral Glavage (0.5 mg/kg/day) Oral Glavage (5 mg/kg/day) Oral Glavage (50 mg/kg/day) Replicates: n=5 per Treatment =>5*(2*6)=60 rats
Model:
Overall Mean
i Effect of gender i
( )ij
i
= = ( )
j i j i
ij
ijk ~
(0, )
2
Questions: 1- Give the sample means for the 12 treatments (2 Gender x 6 Dosing Regimens) Answer:
N gender trt Obs Mean 1 1 5 324.0020000 2 5 432.0020000 3 5 326.9980000 4 5 318.0000000 5 5 324.9980000 6 5 328.0000000 2 1 5 148.0020000 2 5 217.0000000 3 5 140.0000000 4 5 152.0000000 5 5 147.0000000 6 5 152.0000000
Analysis Variable : wtgain N trt Obs Mean 1 10 236.0020000 2 10 324.5010000 3 10 233.4990000 4 10 235.0000000 5 10 235.9990000 6 10 240.0000000
2- Test whether there is an interaction between Gender and Dosing Regimen. (=0.05) Answer:
df 1 5 5 48 59
SS
502333.170 65354.856 3630.3300 69564.394 640882.7514
MS
502333.170 13070.971 726.0660 1449.2582
F
346.6 9.02 0.50
To test the interaction of factors A and B is as below: H0: ()11=...=( )ab=0 No interaction effect HA: Not all ()ij=0 Interaction effect exist = = 0.5
The P-value from this test is much greater than any acceptable significance level, thus we DO NOT reject the null hypothesis and conclude that No interaction effect exist between factor A and Factor B.
3- If there is not an interaction: a) Test whether there are gender or dosing regimen main effects. (Each at =0.05). Answer: Now that we realized no interaction effects exist, we can test for differences among the effects of the levels of factor A and for differences among the effect of the level of factor B as follows. Test for Factor A effect:
H0: 1=...=a=0 No Factor A effect HA: Not all i=0 Factor A effect exist = = 346.6 with P-value= 0.0001 The P-value from this test is smaller than any acceptable significance level, thus we REJECT the null hypothesis and conclude that Factor A (gender) effect exist.
8
Test for Factor B effect: H0: 1=...=b=0 No Factor A effect HA: Not all j=0 Factor A effect exist = = 9.02 with P-value= 0.0001 The P-value from this test is smaller than any acceptable significance level, thus we REJECT the null hypothesis and conclude that Factor B (dosing regimens) effect exist.
b) Use Tukeys method to compare genders (E=0.05), and all pairs of dosing regimens (E=0.05). Answer: Post-Hoc Comparisons: Now that we realized there is no interaction, we can make pairwise comparisons among levels of Factor A and Factor B, respectively. For Factor A, we use Tukeys method, and obtain simultaneous confidence intervals of the form:
.. .
, ,
..
, ,
, ,
1449.25
Gender (2 levels => 1 comparison) Male vs Female rats: .. .. = 342.3 152.3 = 190
, ,
, ,
, ,
1449.25
Confidence Interval -8850.5 350.5 150.5 0.0950.5 -450.5 9150.5 8950.5 88.150.5 8450.5 -250.5 -2.950.5 -750.5 -0.950.5 -550.5 -4.150.5
Conclusion (1mg)> (0mg) NSD NSD NSD NSD (1mg)> (0.1mg) (1mg)> (0.5mg) (1mg)> (5mg) (1mg)> (50mg) NSD NSD NSD NSD NSD NSD
Means with the same letter are not significantly different. Tukey Grouping A B Mean 342.333 159.334 N 30 30 gender 1 2
Alpha 0.05 Error Degrees of Freedom 48 Error Mean Square 1449.258 Critical Value of Studentized Range 4.19724 Minimum Significant Difference 50.529 Means with the same letter are not significantly different. Tukey Grouping A B B B B B B B B B Mean 324.50 240.00 236.00 236.00 235.00 233.50 N 10 10 10 10 10 10 trt 2 6 1 5 4 3
5) Qualitatively, what is the studys implications? Answer:Here we compared more than one set of treatment simultaneously using 2-way ANOVA. Testing for interaction effect between the two factors, gender and dose regimens shows that NO interaction effect between the two factors exists, however testing for individual effects of factors revealed that gender and dose regimens have significant effects on the rats. For the first factor, gender, this effect was obviously observed between the only possible comparison, male and female groups. For the second factor, this effect was observed when the dose regimen was 1mg.
10