contrasts Flashcards
what do treatment / simple contrasts do
compare all treatments to first, or last, in alphanumeric order)
eg A vs B, A vs C, A vs D, A vs E)
OR
A vs E, B vs E, C vs E, D vs E
sum to zero
first two groups are compared to grand mean
when to use polynomial contrasts
if the IV is not an arbitary ordered set of categories but an increasing set of values, eg if dose A B C is actually 0.5, 1, 2. Here we are interested in whether the response to the drug is linear or non linear.
If you had 3 groups, you’d get a linear and then a quadratic. if you have 4 groups you’d get a linear, then a quadratic, then a cubic.
In output, if the quadratic is a negative, it will be an inverted U and if pos, will just be a U
(fit terms in x, x^2, x^3 etc.)
helmert contrasts
compare each level to the mean of the subsequent levels
A vs mean(B,C,D,E), B vs mean(C,D,E), C vs mean(D,E)
difference contrasts or ‘reverse Helmert’
compare each level to the mean of the previous levels)
eg B vs A, C vs mean(A,B), D vs mean(A,B,C), E vs mean(A,B,C,D)
repeated contrasts
compare adjacent levels
If you had a treatment had 4 levels and you wanted to compare all levels to the third level, what would you type?
contrasts(treatment)
How do you know if contrasts are orthogonal?
They are if they are uncorrelated and the
Sum of products is zero
which treatments are orthogonal and which arent?
Helmert and difference contrasts are orthogonal
Polynomial contrasts are orthogonal
Treatment and simple are not
why do orthogonal contrasts make your life easier?
estimate of effect of contrast 1 is independent of effect of contrast 2