Chapter 11 part b: GLM1 Flashcards
contrasts
necessary after conducting an ANOVA to find out which groups differ
A way to contrast the different groups without inflating Type I error rate
- break down variance accounted by model into component parts (planned contrasts)
- compare every group (as if conducting several t-tests) but to use a stricter acceptance criterion such that the familywise error rate does not rise above .05 (Post-Hoc Test)
The difference between planned comparisons and post hoc tests:
- planned comparisons are done when you have specific hypotheses that you want to test,
- whereas post hoc tests are done when you have no specific hypotheses
Planned Contrasts
- used when testing specific hypothesis
- Example:
— H1: any dose of Viagra changes libido compared to the placebo group
— H2: high dose should increase libido more than a low dose
Standard Planned Comparisons
- Contrast I: compare experimental conditions to control
- Contrast II: check the difference between the experimental groups
—> when 2 experimental groups: C.2: E1 vs E2
—> when 3 experimental groups C.2: E1 vs E2, E3
C.3: E2 vs E3
Rules of Planned Contrasts
I. control group to compare it against other groups
II. Each contrast must compare only two ‘chunks’ of variation
III. Once a group has been singled out in a contrast it can’t be used in another contrast
Number of Planned Contrasts
k-1
[ # predictor categories - 1]
Why compare only 2 chunks of variation at a time in planned contrasts?
- we can be sure that a significant result represents a difference between these 2 portions of variation
Planned Contrasts:
- If contrast I is significant, conclude that:
the average of experimental groups is significantly different from the average of control
Planned Contrasts:
- If standard errors (SE) are the same:
- experimental group with the highest mean will be significantly different from the mean of placebo group
- for experimental group with the lowest mean: do a post hoc to determine if it differs from placebo
Planned Contrasts: Weights
- To carry out planned contrasts assign certain values to dummy variables in regression model
- The values assigned to dummy variables: weights
Rules for assigning weights in Planned Contrasts:
Rule I:
Compare only 2 chunks of variation and that if a group is singled out in one comparison, that group should be excluded from any subsequent contrasts
Rule 2:
assign one chunk of variation positive (+) weights and the opposite chunk negative (-) weights
Rule 3:
The sum of weights for a comparison should be 0
Rule 4:
If a group is not involved in a comparison, automatically assign it a weight of zero
Rule 5:
Weights assigned to the group(s) in one chunk of variation should be equal to the number of groups in the opposite chunk
- assign control (+3) when three experimental groups (-1, -1, -1)
Planned Contrasts: Orthogonal
Independent Contrasts
- if sum product of contrasts equals 0
- contrast 1 x contrast 2 for each variable (including control) and add them all
Planned Contrasts: Equation
Outcome = bo + b1Contrast1 + b2Contrast2
Control Mean = Grand mean - 2b1
(bo: grand mean)
(Contrast 1: weight of the control group for contrast 1)
(Contrast 2: weight of control group for this contrast is 0)
Experiment Group 1 Mean = Grand mean + b1 + b2
Planned Contrast: Equation
- depends on the weights we give to each chunk or dummy variables
Planned Contrast: Equation
- What is b1?
- the difference between the average of experimental groups and control group
Planned Contrast: Equation
- What is b2?
- difference between mean of each experimental group divided by the number of groups in this contrast
- contrast 2: high dose vs low dose
- b2: difference between mean of high dose and low dose divided by 2
Planned Contrast: Equation
- Why divide difference of means of each experimental group by number of groups in that contrast to obtain b2?
- to control for family wise error rate
Non-orthogonal Contrasts
- non-independent contrasts
- disobeying Rule I: Once a group has been singled out in a contrast it can’t be used in another contrast
- Example:
- Contrast 1: Compare experimental groups against control
- Contrast 2: Compare high-dose group to control
Non-orthogonal Contrasts
- sum of product of contrasts is not 0
- not wrong
- careful with interpretations because comparisons are related and so will the p values
- hence, use a more conservative alpha
Standard Contrasts
- under most circumstances: you can design your own contrasts
- standard contrasts: special contrasts to compare certain situations
Orthogonal Standard Contrasts
- Helmert
- Difference (Reverse Helmert)
Non-orthogonal Standard Contrasts
- Deviation (first, last)
- Simple (first, last)
- Repeated
Helmert Standard Contrasts
- orthogonal
- each category (except last) is compared to the mean effect of all subsequent categories
Example:
- 3 Categories - 4 Categories - 1 vs (2,3) - 1 vs (2,3,4) - 2 vs 3 - 2 vs (3,4) - 3 vs 4