1 / 47

Psych 5510/6510

Psych 5510/6510. Chapter 14 Repeated Measures ANOVA: Models with Nonindependent ERRORs Part 3: Factorial Designs. Spring, 2009. Non-Independence in Factorial Designs: Nested. Now we will look at applying these procedures to experiments with more than one independent variable.

penny
Download Presentation

Psych 5510/6510

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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. W1i: 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 W1 scores to see if color made a difference.

  12. W1i Scores

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

  14. W1i 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 W1 scores: SSE(A)=(SPSS ‘variance’ of variable W1)*(n-1) = 3.25 SSE(C)=SSE(A)+SSR=3.25+0.25=3.50 PRE = SSR/SSE(C) = 0.07

  15. W1i 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. • 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. W2i and W3i Analysis Do the exact same type of analysis for W2 (the effect of I.V. “Letter”) and for W3 (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 W0 score will be computed for each subject, giving us a single, composite, score for each subject. The SS of these W0 scores will give us SS between subjects. SSW0=31.5 dfW0=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 W0 to get just one score per subject

  27. 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 W1 scores.

  30. W1i 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 W1 score.

  31. Looking for an effect due to “List” Note each W1 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 W1i = 0.

  32. Looking for an interaction between “List” and “Activity” 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.

  33. Within-subject Analysis Review the last two slides: • The test to determine whether ‘List’ has an effect examines whether the mean of all of the W1 scores differs from zero. • 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. • Fortunately, we can easily answer both questions at once...

  34. All we need to do is to regress W1 (which measures the effect of ‘List’) on X (which codes ‘Activity’)

  35. Regressing W1 on X

  36. 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 +β1Xi, 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 = B0 +β1Xi where B0 = 0 Model A: Ŵ1i = β0 +β1Xi where β0 = μW1 H0: β0 = B0or alternatively μW1 = 0 HA: β0 B0or alternatively μW1 0

  37. Model C: Ŵ1i = B0 +β1Xi where B0 = 0 Model A: Ŵ1i = β0 +β1Xi where β0 = μW1 H0: β0 = B0or alternatively μW1 = 0 HA: β0 B0or 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 = -.575+.044Xi

  38. Filling in the Summary Table Ŵ1i = -.575+.044Xi (see previous slide) Model C: Ŵ1i =B0 +β1Xi = 0+.044Xi PC=1 Model A: Ŵ1i = β0 +β1Xi = -.575+.044Xi PA=2 SSE(A) = SS residual from regressing W1 on X = 8.188 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)

  39. Summary Table for I.V. ‘List’

  40. 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 W1 (go back to the slide that covers that). So we have: Model C: Ŵ1i = β0 Model A: Ŵ1i = β0 +β1Xi Which, of course, is simply the analysis of regressing W1 on X.

  41. Summary Table for List x Activity Interaction Taken right off of the SPSS output for regressing W1 on X

  42. 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..

  43. Within-Subject Source Table

  44. Final Source Table

  45. Simple Summary 1) Between subjects contrast: compute the W0 scores, regress W0 on the between subjects contrast (X1 in this example)

  46. Simple Summary • Within subjects contrast, and 3) interaction • W1 represents the within subjects contrast. X1 represents the • between subjects contrast. If we regress W1 on X1 we get: • Ŵ1i = -.575+.044Xi • Testing to see if b0 differs from zero tells us if the within subjects • contrast is significant, testing to see if b1 differs from zero tells • us if there is an interaction between the within and between • subjects variables. SPSS does both of those...

More Related