350 likes | 434 Views
Psych 5500/6500. Other ANOVA’s. Fall, 2008. Factorial Designs. Factorial Designs have one dependent variable and more than one independent variable (i.e. ‘factor’). Example. Independent Variable A : amount of alcohol administered (0 oz., 2 oz., or 4 oz.)
E N D
Psych 5500/6500 Other ANOVA’s Fall, 2008
Factorial Designs Factorial Designs have one dependent variable and more than one independent variable (i.e. ‘factor’).
Example • Independent Variable A: amount of alcohol administered (0 oz., 2 oz., or 4 oz.) • Independent Variable B: amount of barbiturate administered (0 pills or 2 pills). • Dependent Variable: alertness (measured on a scale of 1 – 50 with higher numbers associated with increased alertness). You have 6 treatment combinations (also known as ‘cells’), the subjects in each cell get one level of alcohol and one level of barbiturate.
Layout You have 3 levels of IV A, 2 levels of IV B, which gives 6 treatment combinations (also known as ‘cells’), and you have 12 subjects randomly assigned to cells.
F tests In this design you will have three independent F tests you can perform: • FA: does independent variable ‘A’ (amount of alcohol) have an effect? H0: μa1 = μa2 = μa3 Ha: at least one μa is different than the rest. • FB: does independent variable ‘B’ (amount of barbiturate ) have an effect? H0: μb1 = μb2 Ha: at least one μb is different than the rest. • FAB: do variables ‘A’ and ‘B’ interact? H0: A and B do not interact Ha: A and B do interact
Interaction There are various, equivalent, ways of describing interaction. • Do certain combinations of A and B have unique effects? • Does the effect of A depend upon the level of B (i.e. is the effect of A different across levels of B)? • Does the effect of B depend upon the level of A (i.e. is the effect of B different across levels of A)?
Mean Squares • MSwithin is an estimate of error variance based upon how much the scores differ within each cell. • MSA is an estimate of error variance based upon how much the means of variable A differ. • MSB is an estimate of error variance based upon how much the means of variable B differ. • MSAB is an estimate of error variance based upon how much the cell means differ in a way that fits the definition of A and B interacting.
F tests These are three independent F tests. If H0 is true for all three then αTotal=1 – (1- .05)3=.143
Main Effects of A IV A: amount of alcohol. DV: alertness Another way to write H0 for IV A: all main effects of A=0
Main Effects of B IV B: amount of barbiturates. DV: alertness Another way to write H0 for IV B: all main effects of B=0
Interaction of A and B A and B are said to not interact if the cell means are equal to the main effect of the row the cell is in plus the main effect of the column the cell is in. If this is the case, the effects of A and B are said to be ‘additive’. If combinations of A and B lead to effects that you wouldn’t expect if you added the effect of the level of A and the level of B, then A and B are said to ‘interact’.
Example of No Interaction Note when there is no interaction then each cell mean = mean total + row effect + col. effect. E.g. mean of cella1b1 = 33+8+7 = 48
Interpreting Charts The easiest thing to see on a chart is whether or not there appears to be an interaction. If the lines are parallel there is no interaction. There is no apparent interaction here.
Interpreting Charts To see if the independent variable along the X axis had an effect collapse the lines by finding the mean height of the lines at each level, then look to see if the mean at each level is the same in terms of the D.V.
Interpreting Charts To see if the independent variable represented by the lines had an effect, find the mean of each line and see if those means differ in terms of the D.V.
Example of Interaction Note: while row & column means are the same as in previous example, cell means mean total + row effect + col. effect
Interpreting Charts There is a slight interaction (lines not quite parallel), an effect due to alcohol (the means at the various levels of alcohol are not all identical), and an effect due to barbiturates (the mean heights of the two lines differ).
3 Factor Test (IV’s A,B, and C) • FA • FB • FC • FAB • FAC • FBC • FABC: does the interaction AB differ across levels of C, (same as) does the interaction AC differ across levels of B, (same as) does the interaction BC differ across levels of A If H0 is true, αTotal=1 – (1- .05)7=.30
Other ANOVA’s Within-subjects designs (one factor).
Other ANOVA’s Within-subjects designs (two factors)
Other ANOVA’s Mixed within and between subjects designs (aka ‘split plot’)
Mean Squares As we move to these other designs the issue of what each MS measures becomes complex. For example, a MSA may measure error variance plus the interaction effect plus the effect of A. In that case, F may be:
MS (continued) In selecting the appropriate MS’s for an F test we still want the numerator to be identical to the denominator in everything except what we are testing for:
Selecting MS’s In selecting the appropriate MS’s for your F test you need to know what each is measuring. This, in turn, is dependent upon two criteria: • Is each factor fixed or random? • Are combinations of factors additive or non-additive? Your decision on those two criteria determine what you expect each MS to measure, which in turn influences what MS’s go into the F ratio.
Fixed vs. Random • A factor is fixed if the levels of the IV are not randomly selected, and thus you will be generalizing the results only to those levels of the IV. • A factor is random if the levels of the IV are randomly selected, and you will be generalizing the results to all possible levels of the IV.
Additive vs. Non-Additive • A combination of factors is additive if you are assuming there is no interaction between those factors. • A combination of factors is non-additive if you assume that those factors may interact.
Within Subject’s Design The idea of a random independent variable may seem unlikely, but it plays an important role in what is called a ‘randomized block’ design, which would include a within subjects and a matched subjects design.
Randomized Block The following is a within-subjects (repeated measures) design, but the same applies to matched subjects designs. Independent variable ‘A’ has four levels, each subject is measured four times, once in each level of A
Randomized Block Strangely enough, the analysis of a design like this is approached as if the different subjects each constitute a level of a second independent variable (i.e. ‘B’ representing subjects).
Randomized Block Note that there is only one score per treatment cell! This means there is no within cell variability and thus no MSwithin.
Randomized Block It ends up that if IV B (subjects) is ‘fixed’ then there is no F test for the effect of IV A (treatments) in the experiment! While if IV B (subjects) is ‘random’ then there is: Note that the upper F equation would work in a non-additive model (which assumes no interaction), and that the lower F equation would work for both additive and non-additive models.
Final Note In this ‘review’ of ANOVA we will stop here and not go into the various MS’s. In the second semester of the course we will actually do these types of analyses using multiple regression as our tool.