73
1 First example

1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

Embed Size (px)

Citation preview

Page 1: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

1

First example

Page 2: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

2

Solution

• No, main effects appear in the MARGINAL means.

• No, any treatment effect will appear in patterns of MEANS in the table, not VARIANCES.

• Yes, main effects show themselves in differences among the MARGINAL MEANS.

• We already have a respectable candidate, so we choose C.

Page 3: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

3

Second example

Page 4: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

4

Drawing the graph

Page 5: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

5

Multiple line graph

The Category Axis is the horizontal scale

This will obtain a Right handedness line and a Left handedness line.

Page 6: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

6

The handedness profiles

Page 7: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

7

An interaction

• No main effect of either factor is evident.

• But the effect of Handedness reverses its direction from Task 1 to Task 3.

• There is a striking interaction pattern.

• So C is the right answer.

Page 8: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

8

Adding a main effect

• Create a new variable ScoreTwo by adding thirty points to each of the scores of the left-handed group.

• This will add a main effect of the Handedness factor to the data.

• The interaction between Task and Handedness will remain.

Add 30 to each of the scores in this group.

Page 9: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

9

Interaction plus main effect

Page 10: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

10

Separation of the lines

• The lines no longer cross.

• Their non-parallelism indicates an interaction.

• Interactions and main effects are quite separate and either can occur without the other.

Page 11: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

11

A three-factor experiment

• When another factor (in this case Gender) is added to an experimental design, all THREE factors may interact.

Page 12: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

12

The results

Page 13: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

13

Simple two-way interactions

• A two-way interaction at one level of a third factor is known as a SIMPLE TWO-WAY INTERACTION.

• There’s a simple two-way interaction of Drug and Alertness in the data from the Male participants, but not in the Female scores.

No simple Drug×Alertness interaction in the Female data. The profiles are parallel.

The profiles are not parallel, indicating the presence of a simple Drug×Alertness interaction in the Male scores.

Page 14: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

14

Three-way interaction

• A THREE-WAY INTERACTION is said to occur when the simple interactions between two of the factors are not homogeneous across all levels of a third factor.

• As with main effects and two-way interactions, a three-way interaction can occur irrespective of whether other effects are present.

Page 15: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

15

Summary table for the 3-way ANOVA

Page 16: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

16

Some observations

• There are now three kinds of effect:

1. MAIN EFFECTS2. TWO-WAY

INTERACTIONS3. THREE-WAY

INTERACTION• The same error term is

used for all the F tests. • The MSwithin is the mean

of the cell variances, as in the two-way ANOVA.

The same error term is used for all the F-tests.

Page 17: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

17

Warning

• You can have as many factors as you like in your experimental design.

• But I suggest you have no more than three.

• A three-way interaction can be difficult enough to explain; a four-way interaction is often impossible to explain.

• KEEP YOUR DESIGN SIMPLE!

Page 18: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

18

Lecture 4

WITHIN SUBJECTS EXPERIMENTS

Page 19: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

19

Between subjects experiments

• ALL factors are between subjects.• We have considered three types of between subjects

experiment:

1. the one-factor between subjects experiment;

2. the two-factor between subjects factorial experiment;

3. The three-factor between subjects factorial experiment.

• Each participant (subject) is tested only once, either (as in the one-factor experiment) under one CONDITION or (as in factorial experiments) one COMBINATION of conditions.

Page 20: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

20

Within subjects experiments

• In a WITHIN SUBJECTS experiment, each participant is tested at ALL levels of EVERY treatment factor.

• In a within subjects experiment, ALL factors are within subjects.

• Such an experiment is also said to have REPEATED MEASURES on all of its treatment factors.

Page 21: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

21

Stroop interference

• You are asked not to READ the words, but to NAME the COLOUR of the print each time.

• It’s difficult to do, because the natural tendency is to read the word.

• The more words there are, the more difficult it gets.

Page 22: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

22

A within subjects experiment

• Stroop (1935) tested the SAME PARTICIPANTS under all three conditions.

• So each person was serving as his or her own control.

Page 23: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

23

The results

• Participants took longer to name colours than to read colour words printed in black and white.

• But they took MUCH longer to name the print colours of the colour words in the ‘conflicting’ condition.

Hardest taskEasiest task

Harder than reading

Page 24: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

24

The dependent and independent variables

• The dependent variable is the time taken by the participant (subject) to go through all the items on a card, either naming the print colour of each item or (in the reading condition) reading the words.

• The independent variable (or factor) is the condition under which the task is attempted. This Stroop factor has THREE levels.

Page 25: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

25

The experimental design

Since each subject (participant) performs under all three conditions, i.e, at all ‘levels’ of the Stroop factor, this is a ONE-FACTOR WITHIN SUBJECTS experiment.

Page 26: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

26

Comparing designs

• In the within subjects experiment, you can obtain each participant’s mean score across all conditions.

• You can’t do that in the between subjects experiment.

Page 27: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

27

Subjects (participants) as a factor in the experiment

• Since you can obtain each participant’s mean score, you can have ‘subjects’ as a source in the ANOVA summary table.

• This will leave a smaller estimate of error variance known as the RESIDUAL.

Page 28: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

28

Sums of squares and degrees of freedom

• Recall that, for many purposes, what is true of sums of squares SS is also true of their degrees of freedom df.

• For example, in the one-way ANOVA, the PARTITION OF THE TOTAL SUM OF SQUARES is SStotal = SSbetween + SSwithin

• We can also write dftotal = dfbetween + dfwithin

Page 29: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

29

Suppose …

• Suppose the experimental design were between subjects, rather than within subjects.

• Suppose we had three different groups of four people (12 participants in all), each group being tested under one condition.

• A one-way ANOVA would be appropriate.

Page 30: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

30

A comparison of the ANOVAs

In the within subjects analysis, the Within degrees of freedom (9) has been split into Subjects and Residual components. What’s true of the df is true also of the SS.

One-way ANOVA

Within subjects ANOVA

Page 31: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

31

Partition of SStotal

total number of scores

N = nk number of groups or treatments

number of subjects per group (one-way ANOVA) or number of subjects (within subjects ANOVA)

Page 32: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

32

Implications

• For a given number of observations, the error term in the within subjects ANOVA will be smaller than it would have been for the between subjects (one-way) ANOVA.

• In the within subjects ANOVA, the main effect of individual differences in average ability is factored out.

Page 33: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

33

Advantages of within subjects experiments

• The within subjects experiment has several advantages over the between subjects experiment.

• You cannot argue that people of different abilities were tested under different conditions.

• You gather as much data with fewer participants.

• You make maximum use of the participants while they are available.

Page 34: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

34

Order effects

• On the other hand, the performance of a task may be affected by the order in which the tasks are performed.

• Perhaps it’s easier to name the colours of non-word objects after you have tried the conflicting colour-word task than after you have tried the reading task?

• If all participants were to perform the three tasks in the same order, therefore, the results might be confounded with ORDER EFFECTS.

Page 35: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

35

Counterbalancing

• We vary the order of presentation, so that each task is presented equally often in First, Second and Third positions.

• This procedure is known as COUNTERBALANCING.

Page 36: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

36

Cyclic permutation

• Counterbalancing can be achieved by CYCLIC PERMUTATION.

• A, B, C and D represent the different conditions in the experiment.

• The condition on the right is continually moved to the leftmost position each time, so that all the other conditions ‘slide’ to the right.

• Each condition occurs in the same serial position with approximately equal frequency.

Page 37: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

37

Homogeneity of covariance

• The ANOVA model for within subjects experiments assumes that the data have a property known as SPHERICITY or HOMOGENEITY OF COVARIANCE.

• This property is tested for by the MAUCHLY SPHERICITY TEST. (There are other tests too.)

Page 38: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

38

Mauchly test…

• In the Mauchly test, the null hypothesis is that the data have ‘sphericity’.

• So you hope that the null hypothesis will be accepted: the p-value should be high – certainly greater than .05.

• If the Mauchly test shows significance, you have to adjust the degrees of freedom for your F-test downwards to make the test more stringent.

• SPSS runs a Mauchly test on the data.

Page 39: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

39

Replicating the Stroop experiment

• Suppose a researcher decides to replicate Stroop’s experiment. (It’s been done many times. The effect is very robust.)

• Suppose the results are as follows.

Page 40: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

40

The results

• They look promising – we see some comparatively long times in the Conflict condition.

• But we need to get to know our data by calculating some statistics and drawing a graph.

Page 41: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

41

In Variable View

• Assign clear names and labels to the variables.• Dispense with the decimals.• Note that we haven’t yet told SPSS about the

Stroop factor. We can’t do that until we get into the ANOVA dialog boxes.

Page 42: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

42

Data View

• Note how the display in Data View benefits from your earlier good work in Variable View.

• The numbers are easier to read.

• The variables are clearly labelled.

• Notice that there is NO GROUPING VARIABLE, because the participants have not been grouped in any way.

• In this data set, we only haveTHREE SEPARATE VARIABLES.

Page 43: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

43

Ordering a line graph

• Choose a simple line graph.

• There are no groups, so choose Summaries of separate variables.

• Click the Define button.

Page 44: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

44

The Simple Line dialog

• Since you chose Summaries of Separate Variables, you can now transfer all three variables in you data set to the Line Represents panel on the right.

• We are happy that the points represent mean scores.

• Click OK.

Page 45: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

45

Profile of means

Experimental condition

Page 46: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

46

The profile plot

• As expected, the Conflict condition proved to be the most difficult.

• Naming the colours of the zeros was more difficult than reading the words.

Page 47: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

47

The within subjects ANOVA

Page 48: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

48

Defining the treatment factor

The Add buttons come alive.

Click the live Add buttons to transfer the names to the appropriate panels.

Name of the DV

Page 49: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

49

Assign the variables

• SPSS knows only that there is a within subjects factor, ‘Stroop’, with three levels.

• Now you must assign the three variables in your data set to the three different levels.

Page 50: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

50

The assignment is made

Page 51: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

51

The Options button

• Click the Options button to order descriptive statistics – otherwise, you will just get the ANOVA summary table.

• We have ordered the Bonferroni test for pairwise multiple pairwise comparisons later on.

• The Bonferroni is an equivalent of the Tukey test in the one-way ANOVA.

Page 52: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

52

Profile plots

• You can order profile plots; but watch out!

• The scale on the vertical axis will be microscopic, making the graph appear as if there were huge differences among the means.

• Double-click on the image and adjust the vertical scale in the manner I described in Lecture 2, Slide 53.

Page 53: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

53

The output

• The output is extensive and rather daunting.

• An extensive pruning operation is required.

Page 54: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

54

Pruning the output

• To remove this item (left), click on the image.

• A rectangular frame around the item appears.

• Press Delete to remove the item.

Page 55: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

55

Remove the followiing

Page 56: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

56

Retain:

1. Descriptive Statistics

2. The Mauchly Test

3. Within Subjects Effects

4. Comparisons

Page 57: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

57

Summary of the results

• As expected, the Conflict condition was the toughest. • There is a substantial difference between the mean times for the

Conflict and Naming conditions.• As expected, the Reading condition was much the easiest.• You must request this Descriptive Statistics table when you are

completing the dialogs for the ANOVA routine.

Page 58: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

58

The basic ANOVA summary table

• Notice the additional Subjects factor. • As expected, the Stroop factor has had a

significant effect.• Write this result as, ‘F(2, 6) = 55.353; p < .01’.

Page 59: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

59

The SPSS ANOVA summary table

Page 60: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

60

The Mauchly test

• The p-value is high (.900). • There is therefore no evidence to question the

assumption of homogeneity of variance. • The ordinary ANOVA F-test can be made. • Just keep the first rows of the Stroop and Error(Stroop)

sections of the table.

Page 61: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

61

The SPSS summary table

Page 62: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

62

The F-ratio

• In the within subjects ANOVA, the variance attributable to individual differences is removed from the analysis.

• A separate error term is calculated.

This is MSresidual

Page 63: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

63

If you divide the Stroop MS by the Error MS, you will obtain the value

of F.

Page 64: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

64

The table of pairwise comparisons

Page 65: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

65

EDITED TABLE

• Naming isn’t significantly different from Reading.• But Naming is significantly different from

Conflicting.• And Reading is also significantly different from

Conflicting.

Page 66: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

66

Rationale of the Bonferroni test

• With unplanned multiple comparisons, there is a heightened risk of at least one test showing significance, even when the null hypothesis is true.

• The risk increases dramatically with the number of conditions.

• Suppose we have 8 treatment means. If the null hypothesis is TRUE, the probability of AT LEAST ONE comparison showing significance is .76.

Page 67: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

67

Bonferroni rationale…

• The Bonferroni method of unplanned or ‘post hoc’ comparisons works by multiplying the p-value of t by the number of paired comparisons possible with an array of means of that particular size.

• We have three means. Three possible pairs can be chosen (1&2), (1&3), (2&3).

• So you multiply the p-value by three and compare the product with .05.

• This procedure makes the Bonferroni test very conservative with large arrays of means.

Page 68: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

68

Compare with related t tests

• If you ask for related-samples t-tests on the same data, you will see that the p-values given are a third of the corresponding values in the Bonferroni table.

• TRY THIS YOURSELF!

Page 69: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

69

Suppose the Mauchly had shown significance

• The Greenhouse-Geisser test is a more conservative F test, in which the degrees of freedom are adjusted downwards.

• With our data, this test gives the same result as the ordinary F test because, because the data are ‘spherical’.

Page 70: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

70

In our ANOVA table …

• Instead of reading the rows labelled ‘Sphericity assumed’, read the rows labelled ‘Greenhouse-Geisser’.

• The table now reads: ‘F(1.818, 5.455) = 55.35, p < .01’.

• Although the values for the degrees of freedom have been adjusted, the value of F remains unchanged.

Page 71: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

71

When do conservative F-tests make a difference?

• Only in situations where one has a marginally significant result (just beyond the .05 level).

• A conservative test will not overturn an ordinary test showing a really small p-value of, say, .01.

Page 72: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

72

Example

Page 73: 1 First example. 2 Solution No, main effects appear in the MARGINAL means. No, any treatment effect will appear in patterns of MEANS in the table, not

73

Third question