850 likes | 994 Views
SPSS Problem # 7. Page 467 13.5 Page 416 12.2. Cookbook due Wednesday May 4 th !!. What if. You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person misses class) You would simply do a two-sample t-test
E N D
SPSS Problem # 7 • Page 467 • 13.5 • Page 416 • 12.2
What if. . . • You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person misses class) • You would simply do a two-sample t-test • two-tailed • Easy!
But, what if. . . • You were asked to determine if psychology, sociology, and biology majors have significantly different class attendance • You would do a one-way ANOVA
But, what if. . . • You were asked to determine if psychology majors had significantly different class attendance than sociology and biology majors. • You would do an ANOVA with contrast codes
But, what if. . . • You were asked to determine the effects of both college major (psychology, sociology, and biology) and gender (male and female) on class attendance • You now have 2 IVs and 1 DV • You could do two separate analyses • Problem: “Throw away” information that could explain some of the “error” • Problem: Will not be able to determine if there is an interaction
Factorial Analysis of Variance • Factor = IV • Factorial design is when every level of every factor is paired with every level of every other factor
Sum of Squares • SS Total • The total deviation in the observed scores • Computed the same way as before
SStotal = (2-2.06)2+ (3-2.06)2+ . . . . (1-2.06)2 = 30.94 *What makes this value get larger?
SStotal = (2-2.06)2+ (3-2.06)2+ . . . . (1-2.06)2 = 30.94 *What makes this value get larger? *The variability of the scores!
Sum of Squares • SS A • Represents the SS deviations of the treatment means around the grand mean • Its multiplied by nb to give an estimate of the population variance (Central limit theorem) • Same formula as SSbetween in the one-way
SSA = (3*3) ((1.78-2.06)2+ (2.33-2.06)2)=1.36 *Note: it is multiplied by nb because that is the number of scores each mean is based on
SSA = (3*3) ((1.78-2.06)2+ (2.33-2.06)2)=1.36 *What makes these means differ? *Error and the effect of A
Sum of Squares • SS B • Represents the SS deviations of the treatment means around the grand mean • Its multiplied by na to give an estimate of the population variance (Central limit theorem) • Same formula as SSbetween in the one-way
SSB = (3*2) ((3.17-2.06)2+ (2.00-2.06)2+ (1.00-2.06)2)= 14.16 *Note: it is multiplied by na because that is the number of scores each mean is based on
SSB = (3*2) ((3.17-2.06)2+ (2.00-2.06)2+ (1.00-2.06)2)= 14.16 *What makes these means differ? *Error and the effect of B
Sum of Squares • SS Cells • Represents the SS deviations of the cell means around the grand mean • Its multiplied by n to give an estimate of the population variance (Central limit theorem)
SSCells = (3) ((2.67-2.06)2+ (1.00-2.06)2+. . . + (0.33-2.06)2)= 24.35
SSCells = (3) ((2.67-2.06)2+ (1.00-2.06)2+. . . + (0.33-2.06)2)= 24.35 What makes the cell means differ?
Sum of Squares • SS Cells • What makes the cell means differ? • 1) error • 2) the effect of A (gender) • 3) the effect of B (major) • 4) an interaction between A and B
Sum of Squares • Have a measure of how much cells differ • SScells • Have a measure of how much this difference is due to A • SSA • Have a measure of how much this difference is due to B • SSB • What is left in SScells must be due to error and the interaction between A and B
Sum of Squares • SSAB = SScells - SSA – SSB • 8.83 = 24.35 - 14.16 - 1.36
Sum of Squares • SSWithin • The total deviation in the scores not caused by • 1) the main effect of A • 2) the main effect of B • 3) the interaction of A and B • SSWithin = SSTotal – (SSA + SSB + SSAB) 6.59 = 30.94 – (14.16 +1.36 + 8.83)
Sum of Squares • SSWithin
SSWithin = ((2-2.67)2+(3-2.67)2+(3-2.67)2) + . .. + ((1-.33)2 + (0-.33)2 + (0-2..33)2 = 6.667
SSWithin = ((2-2.67)2+(3-2.67)2+(3-2.67)2) + . .. + ((1-.33)2 + (0-.33)2 + (0-2..33)2 = 6.667 *What makes these values differ from the cell means? *Error
dftotal = N – 1 dfA = a – 1 dfB = b - 1
dftotal = N – 1 dfA = a – 1 dfB = b – 1 dfAB = dfa * dfb
dftotal = N – 1 dfA = a – 1 dfB = b – 1 dfAB = dfa * dfb dfwithin= ab(n – 1)
Test each F value for significance F critical values (may be different for each F test) Use df for that factor and the df within.
Test each F value for significance F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89
Test each F value for significance F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89
Interpreting the Results • Main Effects • Easy – just like a one-way ANOVA
Interpreting the Results • Interaction • Does the effect of one IV on the DV depend on the level of another IV?
Practice • 2 x 2 Factorial • Determine if • 1) there is a main effect of A • 2) there is a main effect of B • 3) if there is an interaction between AB