Professional Documents
Culture Documents
Lecture 5 - Diff - MeansPart2 - ANOVA - ANCOVA
Lecture 5 - Diff - MeansPart2 - ANOVA - ANCOVA
Lecture 5 - Diff - MeansPart2 - ANOVA - ANCOVA
Tests of Differences
Between Means II
ANOVA
ANCOVA
BPK 304W
Fall 2022
Announcements
• Lab 3 –Analysis for Writing Assignment #3 (due Wed,
Sept 28)
– Usual Canvas assignment quiz submission for results
– I will provide correct SPSS output after so that you can write
your results section of your project
SS = sum of squares
-used for evaluating the variance of the data set from its mean
Individual participants are indexed by i (ranging from 1 to nj)
Groups of participants are indexed by j (ranging from 1 to p).
If there were 2 groups and each group had 10 participants, then i would range from
1 to 10, and j would range from 1 to 2.
RG ANOVA Summary Table
SS df MS F
Within SS(Within)
SS(Within) N-k
Groups N-k
SS(Within) +
Total N-1 .
SS(Between)
p value
l One-way RG ANOVA
l Dependent variable: VO2max
l One factor with 3 levels: Age (17, 18, 19 years)
l No significant difference in mean VO2max between age groups in boys (p=0.102)
CFS Kids 17 – 19 years females)
p value
l One-way RG ANOVA
l Dependent variable: VO2max
l One factor with 3 levels: Age (17, 18, 19 years)
l Significant difference in mean VO2max between age groups in girls (p=0.007). But where?
Post Hoc Testing
• What? Post hoc simply means that the test is a
follow-up test done after the original ANOVA is found
to be significant.
Females
• Females – VO2max is
significantly lower for
19 year old females
than 17 year old
females (p=0.008)
Learning Checkpoint
You are conducting an experiment to determine the
effects of education on income level. You recruit 3
groups of individuals based on highest level of education
attained: high school graduation; bachelor’s degree;
graduate degree. You ascertain their average annual
income over the past 3 years.
1. What is the dependent variable?
2. What is the independent variable/factor?
3. How many levels does the factor have, and what are
they?
4. What statistical test would you use to compare mean
levels of the dependent variable?
Learning Checkpoint
You are conducting an experiment to determine the effects of
education on income level. You recruit 3 groups of individuals
based on highest level of education: high school graduation,
bachelor’s degree; graduate degree. You ascertain their
average annual income over the past 3 years.
1. What is the dependent variable? Income
2. What is the independent variable/factor? Education
3. How many levels does the factor have, and what are
they?
3 levels (high school grad., bachelor’s degree, grad. degree)
4. What statistical test would you use to compare mean
levels of the dependent variable? One-way RG ANOVA. If
p<0.05, post-hoc.
RG ANOVA - Multiple Factors
• Test of differences between means with two or
more grouping factors, such that each factor is
‘adjusted’ for the effect of the other.
Long D Sprinter
Long D
Sprinter
Long D
Sprinter
Long D
Sprinter
Long D
Sprinter How would you describe the data
shown in this graph?
Example: 2-Way RG ANOVA cont.
Dependent variable: VO2max
2 Grouping Factors: AGE (17, 18, 19) and Event (Long distance runner, Sprinters)
Runner type
Runner type
RESULTS
• Main effect: Significant difference in VO2max (p=0.018) by AGE. Do post hoc.
• Main effect: Significant difference in VO2max (p<0.001) by Runner types. No post
hoc.
• No significant AGE * Runner types interaction (p=0.386) on VO2max. How would you
interpret this in words?
Example: 2-Way RG ANOVA cont.
Dependent variable:
Dependent variable: VO
VO22max
max
2 Grouping Factors: AGE Factors:
2 Grouping (17, 18, 19)
AGE and Event
(17, (Long
18, 19) anddistance
SEX (1, runner,
2) Sprinters)
1 2 3 1 2 3
Flooring Flooring
28
Grad Student Joe
• What are the advantages & disadvantages of each approach?
• Which approach should Joe pursue, A or B?
• Breakout rooms for 5 mins. Identify someone to report back from your
group.
Repeated Measures Randomized Groups
(RM) Design (RG) Design
(A) (B)
1 2 3 1 2 3
Flooring Flooring
29
Repeated Measures (RM)
ANOVA
• In a repeated measures design, the same dependent
variable is measured several times under different
experimental conditions for each participant.
• Pre- and post-test scores are the simplest RM design
example
– use paired t-test if there are just 2 means & sample size is
small.
– with 3 or more means or a large sample size, you use RM
ANOVA.
• RM designs have advantages over RG designs:
– eliminate variability due to differences between subjects, which
makes it easier to identify the effect of the independent
variable.
30
– often require fewer participants and less time
1-Way RM ANOVA
Dependent variable: Heart rate (bpm)
1 Within-Subjects Factors: Position (supine, sitting, standing)
31
1-Way RM ANOVA cont.
Dependent variable: Heart rate (bpm)
1 Within-Subjects Factors: Position (supine, sitting, standing)
32
1-Way RM ANOVA cont.
Dependent variable: Heart rate (bpm)
1 Within-Subjects Factors: Position (supine, sitting, standing)
• Post-hoc testing revealed that heart rate increased between supine (60.9
bpm) and sitting (71.8 bpm) positions (p=0.001) and between supine and
standing (76.5 bpm) positions (p<0.001), but not between sitting and
standing positions (p=0.069).
1-Way RM ANOVA cont.
Dependent variable: Heart rate (bpm)
1 Within-Subjects Factors: Position (supine, sitting, standing)
35
* Significantly different from supine, p=0.001 for sitting, p<0.001 for standing
2-Way RM ANOVA
Dependent variable: Systolic arterial pressure (mm Hg)
2 Within-Subjects Factors: Position (supine, presyncope), Time (1, 2)
36
2-Way RM ANOVA cont.
Dependent variable: Systolic arterial pressure (mm Hg)
2 Within-Subjects Factors: Position (supine, presyncope), Time (1, 2)
37
2-Way RM ANOVA cont.
Dependent variable: Systolic arterial pressure (mm Hg)
2 Within-Subjects Factors: Position (supine, presyncope), Time (1, 2)
Averaged across positions, systolic arterial pressure did not change between the first (93.5 mmHg)
and second (91.6 mmHg) measurement (F(1,14)=0.33, p=0.577). In addition, there was 39 no significant
interaction between position and time (F(1,14)=1.57, p=0.231).
2-Way Mixed ANOVA
Dependent variable: Systolic arterial pressure (mm Hg)
1 Between-Subject Factor: Health Status (Healthy, Frail)
1 Within-Subjects Factor: Time (1, 2).
Systolic arterial pressure was measured twice in 15 healthy and 15 frail subjects.
40
2-Way Mixed ANOVA
Dependent variable: Systolic arterial pressure (mm Hg)
1 Between-Subject Factor: Health Status (Healthy, Frail)
1 Within-Subjects Factor: Time (1, 2).
41
2-Way Mixed ANOVA
Dependent variable: Systolic arterial pressure (mm Hg)
1 Between-Subject Factor: Health Status (Healthy, Frail)
1 Within-Subjects Factor: Time (1, 2).
42
2-Way Mixed ANOVA
Dependent variable: Systolic arterial pressure (mm Hg)
1 Between-Subject Factor: Health Status (Healthy, Frail)
1 Within-Subjects Factor: Time (1, 2).
43
2-Way Mixed ANOVA
Dependent variable: Systolic arterial pressure (mm Hg)
1 Between-Subject Factor: Health Status (Healthy, Frail)
1 Within-Subjects Factor: Time (1, 2).
45
Acknowledgments
• Data for some examples were provided by Dr.
Victoria Claydon.
46
Analysis of Covariance
(ANCOVA)
Confounder
(W)
Independent Dependent
Variable (X) Variable (Y)
Muscle size
Muscle Size
Independent t tests show that weightlifters have
greater skinfold-adjusted forearm girth (i.e., muscle
size) and grip strength than runners.
W Lift
Runner
W Lift
Runner
Are weightlifter grip strength greater just because they have bigger muscles? Or, are there
biological differences in weightlifters and runners muscle, rendering weightlifter muscle stronger
ANCOVA
Dependent variable: Maximum Grip Strength
Fixed Factor: Athlete type
Covariate: Skinfold-Adjusted Forearm Girth (SAFAGRightcm)
Athlete type
Blood
Pressure
2 More than 2