Term 2 L5: Factorial ANOVA Flashcards
What is a factor?
A factor is a categorical (nominal or ordinal) independent variable.
Factorial designs are named according to _________ and __________
the number of factors and
the number of categories in the factors.
In our case, we have a:
two-way 2×3 factorial design
so factors
2x3 because the first factor has 2 levels and the second has 3
The number of groups in factorial design is equal too
product (multiplication) of the numbers of factor categories.
For example,
2×3 factorial design, the number of groups
is: 2×3 = 6.
The same is the case with more than two factors:
A 2×4×5 factorial design has 3 factors, with the numbers of
categories 2, 4, and 5, respectively. Hence, the number of
groups is 2×4×5 = 40.
What do descriptive stats give?
why use factorial ANOVA? (2 reasons)
DS, SE, SP tttnh-tagma=itpop
(whether the observed group difference are likely to have come from a population where the observer effects don’t exist)
PLUS
interesting to test H0 of effects of ____ _______and their _________
most elegant procedure =
descriptive results give an indication of an
interaction effect in our sample
However, it is possible that these differences are due to sampling error.
We need a statistical procedure that allows us to test whether the observed group differences are likely to have come from a population where the observed effects do not exist (the null
hypothesis that all group means are equal in the population).
In addition, it is interesting to test null hypotheses concerning the effects F1 F2 , and their interaction.
The most elegant procedure Factorial analysis of variance.
What does a Factorial analysis do?
partitions the total variation of the dependent variable into various sources
It’s a statistical model is to account for (“explain”) the variation of a dependent variable through a set of independent factors.
It partitions the total variation of the dependent variable into various sources:
• the variation due to factor I (here: Sex of Patient)
• the variation due to factor II (here: Treatment)
• the variation due to the interaction of factors I and II
• “Error”: residual variation (within-group variation) that
cannot be explained by any of the independent variables that we have included in the model.
This logic extends to a case where we have more than two factors. For example, with three factors I, II, and III, we could consider three two-way interactions (III, IIII, IIIII) and also a three-way interaction (III*III)
What are the assumptions for FA?
same assumptions as one-way ANOVA:
• Independence of observations
——– (random assignment to groups, except with respect to a ‘natural’ independent variable, such as sex or age group, which cannot be manipulated experimentally)
• Equal variances across all groups;
• Normal sampling distribution of the mean within
each group.
How can you tell how well the model fits the data?
PES, R2
To get an indication look at the proportion of the variance in the dependent variable (e.g. weight change) that is explained by the independent variables (eg. Sex, treatment)
This proportion is given by R2 ,
here, R2 = 0.452. (The overall effect size R2 = η2 , where η2 is “Partial Eta Squared”).
This tells us that 45.2% of the variance of Weight Change is explained by the statistical model.
what is the mathmatical formula for R2 and how does it map onto the SPSS output?
𝑅2 = 𝑆𝑆𝐶𝑜𝑟𝑟𝑒𝑐𝑡𝑒𝑑𝑀𝑜𝑑𝑒𝑙/ 𝑆𝑆𝐶𝑜𝑟𝑟𝑒𝑐𝑡𝑒𝑑𝑇𝑜𝑡𝑎l
what figures do we need from the SPSS output to analyse the H0 in a FA?
F=(,)=, P=
F, Df,Df error, p
The test statistic is F(5,24)=3.961. The associated p-value (p=0.009) tells us that
the model prediction is statistically significant at α=0.05.
So, we reject the null hypothesis and conclude that not all group means are the
same.
what figures do we need from the SPSS output to analyse the H0 (that all group means are the same) in a FA?
F=(,)=, P=
F, Df,Df error, p
The test statistic is F(5,24)=3.961. The associated p-value (p=0.009) tells us that
the model prediction is statistically significant at α=0.05.
So, we reject the null hypothesis and conclude that not all group means are the
same.
How do you report the main effects of a FA?
A main effect is the effect of one factor ignoring all of the other factors.
Here, treatment accounts for 22.6% of the variance of “Weight Change”, an effect that is statistically significant: F(2,24)=3.507, p=0.046.
Sex accounts for 1% of the variance of Weight Change, which is not statistically significant: F(1,24)=0.231, p=0.635.
How do you report the interaction of a FA?
The interaction of Treatment by Sex is statistically significant:
F(2,24)=6.280, p=0.006.
It accounts for 34.4% of the variance of Weight Change.
What must you consider when reporting ME and I in a FA?
In general, for a factorial ANOVA: if an interaction effect is present, it is not meaningful to interpret the main effects of the variables involved in the interaction, on their own.
In the example study…
• The main effect for Sex is not significant
• However, it would be wrong to say that the sex of the patient is unimportant in determining treatment outcome
• Since there is a sex*treatment interaction, we have to consider the effect of treatment separately for each sex
what indicates the effect size in FA?
partial eta sqaured
Partial eta-squared is one estimate of the effect of a factor or interaction, after having “partialed out” effects of other factors or interactions in the model.
Partial η𝑇𝑟𝑒𝑎𝑡 ∗𝑆𝑒𝑥 2 = 𝑆𝑆𝑇𝑟𝑒𝑎𝑡∗𝑆𝑒𝑥/ (𝑆𝑆𝑇𝑟𝑒𝑎𝑡∗𝑆𝑒𝑥 + 𝑆𝑆𝐸𝑟𝑟𝑜r)
Things to remember about partial eta squared
which values will it lie between?
can the individual PES values for F1,f2 and I be more that he total effect size (R2)?
What can it be used to compare?
Partial eta squared will be a number between 0 and 1, where:
0 indicates that a factor or interaction does not explain any
variation in the outcome variable,
1 indicates that a factor or interaction explains all the variation in the outcome variable that remains after variation explained by other factors/interactions has been “partialed” out.
Note that the partial eta squared values of Treatment (0.226), Sex (0.010), and Treatment*Sex (0.344) sum to more than the total effect size (0.452). Equally, it is possible that the sum of the values of partial eta squared is larger than 1.
Partial eta squared values can be used to compare the effects of factors and interactions. So, we can say that in this experiment, Treatment*Sex has the largest effect size, Treatment the second largest, and Sex the smallest.