Download presentation
Presentation is loading. Please wait.
1
Factorial Anova – Lecture 2
11/18/2018
2
REVIEW 11/18/2018
3
Nomenclature We will use the terms Factor and Independent Variable interchangeably. They mean the same thing. The term “factorial analysis of variance” simply means the analysis of variance when there are multiple factors (multiple independent variables.) I will sometimes use the phrase Factor 1 or 2 interchangeably with Independent Variable 1 or 2. But to prevent confusion, whenever the term is abbreviated I will use IV1 or IV2, not F1 or F2. 11/18/2018
4
Analysis of Variance In our statistical analysis, we will determine whether differences among the treatment groups’ means are consistent with the null hypothesis that they differ solely because of random sampling fluctuation. We will use the F tests to answer our question. Thus, we will compare estimates of sigma2. 11/18/2018
5
Three F tests, instead of one.
In Chapter 9, we had only two estimates of sigma2 and a single F test. In the two way factorial analysis of variance, you make four estimates of sigma2 and do three F tests. Three of the four estimates will be based on the variation of group means around the overall mean. Each of these three estimates will serve as the numerator in one of three F tests. The other estimate is MSW, derived from the variation of scores around their own group means. It will serve as the denominator in all three F tests. 11/18/2018
6
As you know… Sigma2 is estimated either by comparing a score to a mean (the within group estimate) or by comparing a mean to another mean. This is done by Calculating a deviation or Squaring the deviations. Summing the deviations. Dividing by degrees of freedom 11/18/2018
7
H0 vs. H1 Again, the null will predict that a ratio of two estimates of sigma2 will be about 1.00. Again, the experimental hypothesis says the ratio will be greater than one. But we can’t just compare MSB to MSw as we did in Chapter 9. We have a problem that needs to be solved before any estimates of sigma2 can be compared. 11/18/2018
8
The Problem Unlike the one-way ANOVA of Chapter 9, we now have two variables that may push the means of the experimental groups apart. Moreover, combining the two variables may have effects beyond those that would occur were each variable presented alone. We call such effects the interaction of the two variables. Such effects can be multiplicative as opposed to additive. Example: Moderate levels of drinking can make you high. Barbiturates can make you sleep. Combining them can make you dead. The effect (on breathing in this case) is multiplicative. 11/18/2018
9
The difference between analyzing single and multifactor designs – a review
If we simply did the same thing as in Ch. 9, our between group term could be effected by Factor 1, Factor 2, and/or their interaction as well as by sampling fluctuation. An F test requires two estimates of sigma2, one that indexes only sampling fluctuation, the other indexes sampling fluctuation plus one (and only one) other variable or interaction of variables. So we are going to have to do something different to get appropriate between groups terms. 11/18/2018
10
We create mean squares for Factors 1 & 2 by combining the original experimental groups into groups that differ on only one factor. To obtain proper between groups mean squares for each independent variable, we must divide the sums of squares and df between groups (SSB and dfB) into three components. We begin the analysis by combining the experimental groups to calculate sums of squares and df for the main effects of Factors 1 and 2 (SSIV1, SSIV2, dfIV1 and dfIV2). We obtain the sum of squares and df for the interaction by subtraction. 11/18/2018
11
Two way Anova for independent groups
Remember, the denominator of the F ratio will be the mean square within groups (MSW) where MSW =SSW/ n-k. (AGAIN!) In the factorial analysis of variance, the problem is obtaining proper mean squares for the numerator. 11/18/2018
12
Embarrassment and task difficulty
Remember the experiment in your book. Participants were either not embarrassed or exposed to mildly or highly embarrassing conditions while doing a hard or easy task. Dependent variable was liking for the task. Did embarrassment or task difficulty have main effects on liking for the task? Did the two variables interact so that which task was preferred depended on how embarrassed the person was? 11/18/2018
13
Computing SS for Factor 1
Start the analysis by pretend that the experiment was a simple, single factor experiment in which the only difference among the groups was the first factor (that is, the degree to which a group is embarrassed). Create groups reflecting only differences on Factor 1. So, when computing the main effect of Factor 1 (level of embarrassment), ignore Factor 2 (whether the task was hard or easy). Divide participants into three groups depending solely on whether they not embarrassed, mildly embarrassed, or severely embarrassed. 11/18/2018
14
Computing SS for Factor 1
Next, find the deviation of the mean of the severely, mildly, and not embarrassed participants from the overall mean. Then square and sum those differences. Finally, total the summed squared deviations of each person’s group’s score from the overall mean in the severely, mildly, and not embarrassed conditions. That total is the sum of squares for Factor 1. (SSIV1). 11/18/2018
15
dfIV1 and MSIV1 Compute a mean square that takes only differences on Factor 1 into account by dividing SSIV1 by dfIV1. dfIV1= LIV1 – 1 where LIV1 equals the number of levels of the first factor (IV1). For example, in this experiment, embarrassment was either absent, mild or high. These three ways participants are treated are called the three “levels” of Factor 1. So, dfIV1= LIV1 – 1 =3-1 = 2. 11/18/2018
16
Then Do the same for factor 2
Then subtract the sums of squares and df for factors 1 & 2 from the sum of squares and degrees of freedom between group to obtain SSINT & dfINT. Once you have all the sums of squares and degrees of freedom, compute ANOVA and determine significance with the F table. Finally, plot the means and carefully interpret the results. 11/18/2018
17
Alternative Problem Formats
Once you get down the basics of the analysis of variance for factorial designs, problems can be presented in a variety of formats. These alternative problem formats require less computation and more understanding of what you are doing when you compute a factorial Anova than does a format in which you are given all the scores. 11/18/2018
18
Format 1: Another drug study: group means and SSW given
A drug company compared three new drugs (SansCho, MuckFree, and NoBlock) for cholesterol reduction. Patients also ate either the “HeartHealthy” or “EnoughFat” diet.. There were 3 participants in each of the six conditions. The patients who ate the “HeartHealthy”diet lost an average of 12 points of cholesterol if they also took SansCho, an average of 15 points if they also took MuckFree,and an average of 18 points in the HeartHeathy diet/NoBlock condition. The patients who ate the “EnoughFat”diet lost an average of 15 points of cholesterol if they also took SansCho, an average of 21 points if they also took MuckFree,and an average of 26 points in the EnoughFat/NoBlock condition. SSW=86.00. Compute the Anova. 11/18/2018
19
Start by determining df from the design and setting up the ANOVA Table
Start by determining df from the design and setting up the ANOVA Table. Then see what you still need to compute. Let’s call type of diet Factor 1. Type of drug received is Factor 2. 11/18/2018
20
Based on the DESIGN, what is total n. Second, what is k
Based on the DESIGN, what is total n? Second, what is k. Then, what are dfB, dfW, dfIV1, dfIV2 and dfINT? There are 2x3=6 groups. Three participants/group. n=18. There are 6 groups. k = 6. dfW=n-k=18-6=12 dfB= k – 1 = 5 dfIV1 =LIV1-1 = 1, dfIV2=LIV2-1=2 and dfINT=5-(1+2) =2 11/18/2018
21
You already know SSW I told you it was 86.
Let’s fill in the Anova summary table on the basis of what we know from the design and what was given. 11/18/2018
22
ANOVA summary table SS df MS F p Type of Diet ? 1 Type of Drug ? 2
? Type of Drug ? Interaction ? Error 11/18/2018
23
What we need At this point we need the sums of squares for factors 1 & 2 and for the interaction. To find the sum of squares for the interaction, we need the sum of squares between groups. Then we can subtract the sums of squares for factors 1 & 2 and find the sum of squares for the interaction. Best thing we can do next is set up a table of means. 11/18/2018
24
Means for Cholesterol Lowering
Type of New Drug Diet Type SansCho MuckFree NoBlock EnoughFat HeartHealthy 12 15 18 15 16 21 26 21 14 18 22 11/18/2018
25
Then lets compute SSB, SSIV1, SSIV2, and SSINT using the table of means
11/18/2018
26
Sum of Squares Between Groups (SSB)
Compare each group mean to the overall mean. Sum of Squares Between Groups (SSB) Type of Drug Task Difficulty SansCho MuckFree NoBlock EF HH 11/18/2018
27
Sum of Squares Between Groups (SSB)
-6 --3 -2 3 8 36 9 4 64 SSB=366.00 12 15 18 18 16 21 26 18 11/18/2018
28
SSIV1: Main Effect of Diet Type
Compare each participant’s diet group mean to the overall mean. SSIV1: Main Effect of Diet Type Type of Drug Diet Type Sans Cho MuckFree NoBlock EF HH 11/18/2018
29
Means for Cholesterol Lowering
Type of New Drug Diet Type SansCho MuckFree NoBlock EnoughFat HeartHealthy 15 12 15 18 21 16 21 26 14 18 22 11/18/2018
30
In this kind of problem, it is often a good idea to make a table showing the number of participants in each group and of each combined group. The most frequent mistake people make in solving these problems is having the wrong number of people in each of the combined groups, groups that differ on only one factor. So, this may help. Use it if you like it, but forget it if it makes things more confusing. 11/18/2018
31
n for each group in the cholesterol lowering study
Type of New Drug Diet Type SansCho MuckFree NoBlock EnoughFat HeartHealthy 9 3 3 3 9 3 3 3 6 6 6 11/18/2018
32
Notice that the different factors have different n per group
Each of the combined groups on factor 1, type of diet has n=9 Each of the combined groups on factor 2, brand of drug, has n=6 11/18/2018
33
n for each group in the cholesterol lowering study
Type of New Drug Diet Type SansCho MuckFree NoBlock EnoughFat HeartHealthy 9 3 3 3 9 3 3 3 6 6 6 11/18/2018
34
Sum of Squares Factor 1 (SSIV1)
-3 --3 3 9 SSIV1=162.00 15 18 21 18 11/18/2018
35
ANOVA summary table SS df MS F p Type of Diet
Brand of Drug ? Interaction ? Error 11/18/2018
36
SSIV2: Main Effect of Type of Drug
Compare each participant’s “Type of drug” group mean to the overall mean. SSIV2: Main Effect of Type of Drug Type of drug Diet Type SansCho MuckFree NoBlock Enough Fat Heart Hlthy 11/18/2018
37
Means for Cholesterol Lowering
Type of New Drug Diet Type SansCho MuckFree NoBlock EnoughFat HeartHealthy 12 15 18 15 16 21 26 21 14 18 22 11/18/2018
38
Sum of Squares Factor 2 (SSIV2)
-4 4 16 SSF1=192.00 14 18 22 18 14 18 22 18 11/18/2018
39
ANOVA summary table SS df MS F p Type of Diet
Brand of Drug Interaction ? Error 11/18/2018
40
Means Squares - Interaction
REARRANGE 11/18/2018
41
ANOVA summary table SS df MS F p Type of Diet
Type of Drug Interaction n.s. Error 11/18/2018
42
Interpret the results. There was a significant main effect for type of diet [F(1,12) = 22.60, p<.01]. People who ate the EnoughFat diet lost an average of 6 points of cholesterol more than did the participants who ate the HeartHealthy diet. There was a significant main effect for type of medication [F(2,12) = 12.70]. People who took NoBlock lost an average of 8 points more than did the participants who took SansCho, with those who took MuckFree scoring in the middle. 11/18/2018
43
More interpretation The interaction was not significant
F(2,12) = 0.84, n.s. Thus, the EnoughFat diet and NoBlock seem the best choices, resulting in the most cholesterol lowering. The effects of the drug and diet interventions seem to be additive. 11/18/2018
44
Another Format A researcher compared responses to two doses of a new drug, ThinkRight, for schizophrenia, plus either standard hospital treatment or a behavioral innovation treatment. There were 6 participants in each group. She measures responses on a scale of normal cognition. Higher scores equal more normal functioning. The sum of squares within group is The sum of squares between groups was The sum of squares for Factor 1 (Drug Dose) is The sum of squares for the interaction is Compute the Anova. 11/18/2018
45
Based on the DESIGN, what is total n. Second, what is k
Based on the DESIGN, what is total n? Second, what is k. Then, what are dfB, dfW, dfIV1, dfIV2 and dfINT? There are 2x2=4 groups. k=4 Six participants/group. n=24. dfW=n-k=24-4=20 dfB= k – 1 = 3 dfIV1 =LIV1-1 = 1, dfIV2=LIV2-1=1 and dfINT=3-(1+1)=1 11/18/2018
46
We are given several sums of squares.
We are given SSW (SSW=100.00) We are given SSB (SSB=120.00) We are given SSIV1 (SSIV1=60.00) We are given SSINT(SSINT=40.00) 11/18/2018
47
Let’s fill in the ANOVA table with what we know
11/18/2018
48
ANOVA summary table SS df MS F p Type of Diet 60.00 1 60.00 12.00 .01
Dose of Drug ? ? ? ? Interaction Error 11/18/2018
49
All we need is SSIV2 and we are set.
11/18/2018
50
The whole equals the sum of its parts
SSB=SSIV1 + SSIV2 + SSINT 120.00= SSIV SSIV2 = 20.00 11/18/2018
51
ANOVA summary table SS df MS F p Drug dose 60.00 1 60.00 12.00 .01
Type of Drug n.s. Interaction Error 11/18/2018
52
Another format You have a 3x2 design in a dose-response (low/moderate/high) by type of psychotherapy (Emotional Expression/Nondirective Support) study with 5 participants in each group. The sum of squares within group is The Factor 1 means are Low dose = 10.00, Moderate dose=15.00 and High dose = Higher scores show better responding. Compute an F test for the main effect of Factor 1. 11/18/2018
53
First, what are dfW & dfIV1
3x2 design = 6 groups, 5 participants/group n=30, k = 6 dfW=n-k =30 – 6 = 24 3 levels of Factor 1. dfIV1= LIV1-1= 3-1=2 11/18/2018
54
What is the overall mean (M)?
Three (combined) groups on Factor 1, each has 10 participants. Means are 10, 15, 20. Overall mean is obviously15.00 (M=15.00) 11/18/2018
55
Finding SSIV1 one group at a time. First group:
Distance of group mean from overall mean for the 10 participants in this group (X-M) is ( ) = Each of the ten participants in this group contributes that distance squared to SSIV1 (-5.00 x –5.00 = 25.00) Total contribution of this group to SSIV1 = 10x25.00=250.00 11/18/2018
56
Finding SSIV1 one group at a time. Second group:
Distance of group mean from overall mean for the 10 participants in this group (X-M) is ( ) = 0.00. Each of the ten participants in this group contributes that distance squared to SSIV1 (0.00 x 0.00 = 0.00) Total contribution of this group to SSIV1 = 10x0.00=0.00 11/18/2018
57
Finding SSIV1 one group at a time.Third group and total SSIV1.
Distance of group mean from overall mean for the 10 participants in this group (X-M) is ( ) = 5.00. Each of the ten participants in this group contributes that distance squared to SSIV1 (5.00 x 5.00 = 25.00) Total contribution of this group to SSIV1 = 10x25.00=250.00 SSIV1= = 11/18/2018
58
ANOVA summary table SS df MS F p Factor 1 500.00 2 250.00 5.00 .05
Factor 2 ? Interaction ? Error 11/18/2018
59
F (2,24) = 5.00, p<.05 This is a significant finding, with the highest dose group scoring highest 11/18/2018
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.