R 4 Different Drugs
R 4 Different Drugs
Then
Table B.12 (pg. 1342-1343) tells us we need
The R function power.anova.test does similar calculations,
but not in terms of .
Investigating Differences Among Treatment Means
If the F-test is not significant, we conclude the true mean
response is (or may be) the same for all factor levels and no
further investigation is needed.
If we conclude a difference in treatment means, we investigate
further.
Plots: We can plot the sample means for each level using a bar
graph (good with a qualitative factor) or a main effects plot
(good with a quantitative factor).
See SAS and R examples.
Inference About the Population Treatment Means
Consider a CI for i, the true mean response at level i:
Point estimate of i is
Using MSE to estimate 2,
and
means and the p-value for each test comparing two treatment
means.
Note: These results are only valid if we are doing inference
about one particular pair of treatment means. If we are doing
many simultaneous comparisons, we must use different
techniques.
SAS example: 95% CI for the difference between mean sales
for package design 3 and mean sales for package design 4:
Contrasts
A contrast is a linear combination of factor level means in
which the coefficients sum to zero.
Often useful for comparing several treatment means.
Previous example:
In Kenton Foods data, package designs 1 and 3 used
cartoons; designs 2 and 4 did not. To compare mean sales for
the cartoon designs vs. the non-cartoon designs, we could
use the contrast:
Interpretation:
Simultaneous Inference
Suppose we make 3 simultaneous comparisons, say:
For testing
against the two-sided alternatives, for each H0, we reject if
Rule of Thumb:
A formal t-test based on the externally studentized residuals is
also available; see pg. 780 for details.
Graphical Tools: (1) Plots of Residuals vs. Fitted Values
Can check: