1 Psych 5510/6510 Chapter 14 Repeated Measures ANOVA: Models with Nonindependent ERRORs Part 3: Factorial Designs Spring, 2009.

Slides:



Advertisements
Similar presentations
Overview of Lecture Partitioning Evaluating the Null Hypothesis ANOVA
Advertisements

Mixed Designs: Between and Within Psy 420 Ainsworth.
Statistics for the Social Sciences
1 Psych 5510/6510 Chapter Eight--Multiple Regression: Models with Multiple Continuous Predictors Part 3: Testing the Addition of Several Parameters at.
Research Methods for Counselors COUN 597 University of Saint Joseph Class # 8 Copyright © 2015 by R. Halstead. All rights reserved.
1 G Lect 14b G Lecture 14b Within subjects contrasts Types of Within-subject contrasts Individual vs pooled contrasts Example Between subject.
Dr George Sandamas Room TG60
Cal State Northridge  320 Andrew Ainsworth PhD Regression.
Two Factor ANOVA.
Chapter 11 One-way ANOVA: Models with a Single Categorical Predictor
Chapter 9 - Lecture 2 Some more theory and alternative problem formats. (These are problem formats more likely to appear on exams. Most of your time in.
1 Psych 5510/6510 Chapter Eight--Multiple Regression: Models with Multiple Continuous Predictors Part 2: Testing the Addition of One Parameter at a Time.
ANCOVA Psy 420 Andrew Ainsworth. What is ANCOVA?
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Mean Comparison With More Than Two Groups
Chapter 10 - Part 1 Factorial Experiments.
Chapter 9 - Lecture 2 Computing the analysis of variance for simple experiments (single factor, unrelated groups experiments).
PSY 307 – Statistics for the Behavioral Sciences Chapter 19 – Chi-Square Test for Qualitative Data Chapter 21 – Deciding Which Test to Use.
DOCTORAL SEMINAR, SPRING SEMESTER 2007 Experimental Design & Analysis Further Within Designs; Mixed Designs; Response Latencies April 3, 2007.
1 Two Factor ANOVA Greg C Elvers. 2 Factorial Designs Often researchers want to study the effects of two or more independent variables at the same time.
Analysis of Variance. ANOVA Probably the most popular analysis in psychology Why? Ease of implementation Allows for analysis of several groups at once.
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
Chapter 13: Inference in Regression
Basics of ANOVA Why ANOVA Assumptions used in ANOVA Various forms of ANOVA Simple ANOVA tables Interpretation of values in the table Exercises.
ANOVA Greg C Elvers.
1 1 Slide © 2005 Thomson/South-Western Chapter 13, Part A Analysis of Variance and Experimental Design n Introduction to Analysis of Variance n Analysis.
Matched Pairs, Within-Subjects, and Mixed Designs
@ 2012 Wadsworth, Cengage Learning Chapter 9 Applying the Logic of Experimentation: Between-Subjects 2012 Wadsworth, Cengage Learning.
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
t(ea) for Two: Test between the Means of Different Groups When you want to know if there is a ‘difference’ between the two groups in the mean Use “t-test”.
1 Psych 5510/6510 Chapter 12 Factorial ANOVA: Models with Multiple Categorical Predictors and Product Terms. Spring, 2009.
1 Psych 5500/6500 t Test for Two Independent Means Fall, 2008.
1 Psych 5510/6510 Chapter 10. Interactions and Polynomial Regression: Models with Products of Continuous Predictors Spring, 2009.
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
Psych 5500/6500 Other ANOVA’s Fall, Factorial Designs Factorial Designs have one dependent variable and more than one independent variable (i.e.
6/4/2016Slide 1 The one sample t-test compares two values for the population mean of a single variable. The two-sample t-test of population means (aka.
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
Chapter 14 Repeated Measures and Two Factor Analysis of Variance
Analysis of Variance (One Factor). ANOVA Analysis of Variance Tests whether differences exist among population means categorized by only one factor or.
1 Psych 5510/6510 Chapter Eight--Multiple Regression: Models with Multiple Continuous Predictors Part 1: Testing the Overall Model Spring, 2009.
Mixed ANOVA Models combining between and within. Mixed ANOVA models We have examined One-way and Factorial designs that use: We have examined One-way.
SPSS meets SPM All about Analysis of Variance
Chapter 10 The t Test for Two Independent Samples
1 Psych 5510/6510 Chapter 13 ANCOVA: Models with Continuous and Categorical Predictors Part 2: Controlling for Confounding Variables Spring, 2009.
Chapter 12 Introduction to Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Eighth Edition by Frederick.
General Linear Model.
1 Psych 5510/6510 Chapter 14 Repeated Measures ANOVA: Models with Nonindependent Errors Part 1 (Crossed Designs) Spring, 2009.
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
ANOVA, Regression and Multiple Regression March
Smith/Davis (c) 2005 Prentice Hall Chapter Fifteen Inferential Tests of Significance III: Analyzing and Interpreting Experiments with Multiple Independent.
1 Psych 5510/6510 Chapter 13: ANCOVA: Models with Continuous and Categorical Predictors Part 3: Within a Correlational Design Spring, 2009.
Remember You just invented a “magic math pill” that will increase test scores. On the day of the first test you give the pill to 4 subjects. When these.
1 Psych 5510/6510 Chapter 14 Repeated Measures ANOVA: Models with Nonindependent ERRORs Part 2 (Crossed Designs) Spring, 2009.
ANOVA Overview of Major Designs. Between or Within Subjects Between-subjects (completely randomized) designs –Subjects are nested within treatment conditions.
Outline of Today’s Discussion 1.Independent Samples ANOVA: A Conceptual Introduction 2.Introduction To Basic Ratios 3.Basic Ratios In Excel 4.Cumulative.
Factorial BG ANOVA Psy 420 Ainsworth. Topics in Factorial Designs Factorial? Crossing and Nesting Assumptions Analysis Traditional and Regression Approaches.
Aron, Aron, & Coups, Statistics for the Behavioral and Social Sciences: A Brief Course (3e), © 2005 Prentice Hall Chapter 10 Introduction to the Analysis.
Chapter 12 Introduction to Analysis of Variance
Chapter 14 Repeated Measures and Two Factor Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Seventh.
Six Easy Steps for an ANOVA 1) State the hypothesis 2) Find the F-critical value 3) Calculate the F-value 4) Decision 5) Create the summary table 6) Put.
Why is this important? Requirement Understand research articles
12 Inferential Analysis.
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.
Main Effects and Interaction Effects
12 Inferential Analysis.
Conceptual Understanding
Chapter 10 Introduction to the Analysis of Variance
Presentation transcript:

1 Psych 5510/6510 Chapter 14 Repeated Measures ANOVA: Models with Nonindependent ERRORs Part 3: Factorial Designs Spring, 2009

2 Non-Independence in Factorial Designs: Nested Now we will look at applying these procedures to experiments with more than one independent variable. In the first example one independent variable is whether the stimulus is the letter ‘A’ or ‘B’, the other independent variable is the color of the stimulus letter ‘White’ or ‘Black’. Subjects are nested within both independent variables.

3 Design The effects of both independent variables and their interaction are all between-subjects as their effects will occur between subjects.

4 Transform to W0 scores This situation is quite simple, we translate the repeated measures into just one score per person which represents conceptually (more or less) their mean score on the two measures.

5 Design Now just proceed with the analysis, regressing W on the contrasts that code the independent variables and their interactions, just like you would analyze Y scores.

6 Non-Independence in Factorial Designs: Crossed In the next example subjects are crossed with both independent variables.

7 Design The effects of both independent variables and their interaction are all within-subjects as their effects will occur within the multiple scores we have for each subject.

8 Data

9 Contrast Codes We begin by setting up the contrast codes as we normally would for a 2-factor design, in the table below contrast 1 compares white letters with black letters, contrast 2 compares the letter A with the letter B, and contrast 3 does the interaction of letters and colors..

10 W Scores All the independent variables are crossed with subjects, so the contrasts will be used to create W scores that will represent the effect of the independent variable on each subject’s scores.

11 W 1i : Contrast One (i.e. Color) For example: computing W1 for subject 1 gives us: Which contrasts his or her scores in the two white conditions (5 and 4) with his or her scores in the two black conditions (6 and 3). We will do this for all the subjects, and then analyze their W 1 scores to see if color made a difference.

12 W 1i Scores SubjectW 1i (Contrast 1: color) mean = 0.25

13 W 1i Analysis of Contrast 1 Model C: Ŵ 1i = B 0 = 0 Model A: Ŵ 1i = β 0 = μ W If Model A is ‘worthwhile’ then using the mean of W 1 works better as a model than using 0, which tells us that the mean of W 1 is not 0. The mean of W 1 would equal 0 if the null hypothesis were true and color did not have an effect on scores.

14 W 1i Analysis of Contrast 1 SSR (reduction in error due to including Color in the model) can be computed using: SSE(A) is simply the SS of the W 1 scores: SSE(A)=(SPSS ‘variance’ of variable W1)*(n-1) = 3.25 SSE(C)=SSE(A)+SSR= =3.50 PRE = SSR/SSE(C) = 0.07

15 W 1i Analysis of Contrast 1 (Color) a) d.f. for a contrast always equals 1, b) d.f. for an interaction is the product of the d.f. of the terms that are interacting. d.f. for the Color contrast = 1, d.f. for Subjects = n – 1, so d.f. error = (1)(n-1) = n – 1 = 3. c)The p value can come from the PRE or F tools, or from doing a t test on W1 for a ‘One-Sample T test’ with a ‘test value’ of zero (on SPSS), which also gives you a t value (the square root of the F) and is a quick alternative if you don’t want the full source table.

16 W 2i and W 3i Analysis Do the exact same type of analysis for W 2 (the effect of I.V. “Letter”) and for W 3 (the interaction of “Letter” and “Color”). In each case use the model comparison approach to determine if the mean of the W scores is significantly different than zero.

17 Within Subject Source Table The table below combines the analyses of the three contrasts (the real meat...carrot...of the analyses) Note the total SS and df Within S is the sum of its partitions.

18 Pooling Error Terms Notice that each contrast has its own unique error term. In the ‘traditional ANOVA’ approach all of the error terms for the contrasts are ‘pooled’ together to make one error term. The disadvantage of pooling the error term is that its validity depends upon a rarely tested assumption that all of those error terms are estimating the same thing.

19 Full Source Table

20 SS between subjects A W 0 score will be computed for each subject, giving us a single, composite, score for each subject. The SS of these W 0 scores will give us SS between subjects. SS W0 =31.5 df W0 =3

21 SS Total SS total is simply the SS of the 16 scores in the experiment: SS = 47 df total is n-1 =16-1=15

22 Full Source Table

23 Nonindependence in Mixed Designs Now we will turn our attention to the most complicated situation, a factorial design where some independent variables are between-subjects (i.e. subjects are nested) and some independent variables are within subjects (i.e. subjects are crossed).

24 Design

25 Data

26 Between-Subjects Look back at the ‘design’ slide. The IV “Activity” (Passive vs. Active) is a between-subjects treatment. We could simply set up a contrast variable, X = -1 or 1, and regress Y on it, but we have two Y scores per subject and those scores will be nonindependent. Solution: use W 0 to get just one score per subject

27 SubjectY list 1Y list 2W0ActivityX Passive Passive Passive Passive Passive Passive Passive Passive Active Active Active Active Active Active Active Active1 W0 gives us 1 score per S, regress W0 on X to see if type of activity had an effect.

28 Analysis of IV Activity

29 Within-subject Analysis The analysis of the IV “List” (“First” vs “Second”), and the analysis of the interaction between “List” and “Activity” both involve within-subject differences (the interaction involves both within-subject and between- subject differences). To analyze these we will need to use W 1 scores.

30 W 1i scores To determine the difference between a subject’s score in the first list with the same subject’s score in the second list we will use a contrast of +1 for the first list, -1 for the second list, and use these deltas for computing each subject’s W 1 score.

31 SubjectY list 1Y list 2W0ActivityXW Passive Passive Passive Passive Passive Passive Passive Passive Active Active Active Active Active Active Active Active11.41

32 Looking for an effect due to “List” SubjectW Mean.57 Note each W 1 score reflects the difference between when the subject was measured in the first list versus when he or she was measured in the second list. Conceptually, the question here is whether the μ of W 1i = 0.

33 Looking for an interaction between “List” and “Activity” PassiveActive SubjectW1SubjectW Mean.62Mean.53 Here are the same W1 scores listed according to ‘Activity’. Remember, W1 measures the effect of ‘List’, if the effect of List depends upon Activity then the two interact, this will be seen in a difference in the means of the W1 scores in the two groups.

34 Within-subject Analysis Review the last two slides: 1.The test to determine whether ‘List’ has an effect examines whether the mean of all of the W1 scores differs from zero. 2.The test to determine whether ‘List’ and ‘Activity’ interact examines whether the mean of W1 scores in the ‘Passive’ group differs from the mean of the W1 scores in the ‘Active’ group. 3.Fortunately, we can easily answer both questions at once...

35 SubjectY list 1Y list 2W0ActivityXW Passive Passive Passive Passive Passive Passive Passive Passive Active Active Active Active Active Active Active Active11.41 All we need to do is to regress W1 (which measures the effect of ‘List’) on X (which codes ‘Activity’)

36 Regressing W1 on X

37 Testing for an Effect Due to List If ‘List’ has no effect then the mean of W1 should be zero. When we regress W1 on X we get: Ŵ 1i = β 0 + β 1 X i, now it is interesting to note that X (because it is a contrast) has a mean of zero, and because of this β 0 = μ W1. So we can do the following to see if μ W1 =0. Model C: Ŵ 1i = B 0 + β 1 X i where B 0 = 0 Model A: Ŵ 1i = β 0 + β 1 X i where β 0 = μ W1 H0: β 0 = B 0 or alternatively μ W1 = 0 HA: β 0  B 0 or alternatively μ W1  0

38 Model C: Ŵ 1i = B 0 + β 1 X i where B 0 = 0 Model A: Ŵ 1i = β 0 + β 1 X i where β 0 = μ W1 H0: β 0 = B 0 or alternatively μ W1 = 0 HA: β 0  B 0 or alternatively μ W1  0 To ask whether μ W1 = 0 is to ask whether β 0 = 0, and the SPSS printout provides a t test to see whether or not β 0 = 0. t=-3.005, p=.009. So we can conclude that List does indeed have an effect. Ŵ 1i = X i

39 Filling in the Summary Table Ŵ 1i = X i (see previous slide) Model C: Ŵ 1i = B 0 + β 1 X i = X i PC=1 Model A: Ŵ 1i = β 0 + β 1 X i = X i PA=2 SSE(A) = SS residual from regressing W1 on X = and df=14 (see earlier slide) PRE=SSR/SSE(C)=0.39 MS = SSR/df = 5.29/1 = 5.29 F=t²=-.3005²=9.03 (see previous slide) p=.009 (see previous slide)

40 Summary Table for I.V. ‘List’ SourceSSdfMSFPREp SSR (List) SSE(A) (Error) SSE(C) (Total)

41 Effect Due to List x Activity Interaction To say that “List” and “Activity” do not interact is to say that knowing X does not help predict the value of W 1 (go back to the slide that covers that). So we have: Model C: Ŵ 1i = β 0 Model A: Ŵ 1i = β 0 + β 1 X i Which, of course, is simply the analysis of regressing W1 on X.

42 Summary Table for List x Activity Interaction SourceSSdfMSFPREp SSR (List x Activity) SSE(A) (Error) SSE(C) (Total) Taken right off of the SPSS output for regressing W1 on X

43 Error Term Note we have the same error term for both the effect due to list and the effect of list by activity interaction. The error term is for the same Model A in both cases and actually represents the List x Activity X Subject interaction..

44 Within-Subject Source Table SourceSSdfMSF*PREp List List x Activity Error (List x Activity x S) Total Within

45 Final Source Table SourceSSdfMSF*PREp Between Subjects Activity Error between Ss Within Subjects List List x Activity Error (List x Activity x S) Total

46 Simple Summary 1) Between subjects contrast: compute the W 0 scores, regress W 0 on the between subjects contrast (X 1 in this example)

47 Simple Summary 2)Within subjects contrast, and 3) interaction W 1 represents the within subjects contrast. X 1 represents the between subjects contrast. If we regress W 1 on X 1 we get: Ŵ 1i = X i Testing to see if b 0 differs from zero tells us if the within subjects contrast is significant, testing to see if b 1 differs from zero tells us if there is an interaction between the within and between subjects variables. SPSS does both of those...