“Unplanned comparisons” If and only if our ANOVA is significant, we conduct a post-hoc test. In...

31
“Unplanned comparisons” If and only if our ANOVA is significant, we conduct a post-hoc test. In this class, we will use Tukey’s post-hoc test. Example Data: Splenda Equal Sweet & Low 3 6 0 4 3 1 2 2 3 5 7 1 4 4 2 One-Way ANOVA: POST-HOC tests

Transcript of “Unplanned comparisons” If and only if our ANOVA is significant, we conduct a post-hoc test. In...

“Unplanned comparisons”

If and only if our ANOVA is significant, we conduct a post-hoc test. In this class, we will use Tukey’s post-hoc test.

Example Data:

Splenda Equal Sweet & Low

3 6 0

4 3 1

2 2 3

5 7 1

4 4 2

One-Way ANOVA: POST-HOC tests

Introduction to Two-Way ANOVA

Two-way ANOVA is an extension of the one-way ANOVA for those instances in which there are two independent variables (hence TWO-way ANOVA).

For example, I may believe that the type of pet you own (either cat or dog) affects how depressed you are. However, I may also believe that your gender affects depression as well.

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners Cat Owners

5 5

Overall, is there an effect of type of pet?

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners Cat Owners

5 10

Overall, is there an effect of type of pet?

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owners

Male 8 5

Female 2 5

Overall, is there an effect of type of pet?

Overall, is there an effect of gender?

5 5

6.5

3.5

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Overall, is there an effect of type of pet?

Overall, is there an effect of gender?

Dog owners

Cat Owners

Male 6 4

Female 8 2

7 3

5

5

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Overall, is there an effect of type of pet?

Overall, is there an effect of gender?

Dog owners

Cat Owners

Male 5 5

Female 10 5

7.5 5

5

7.5

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owners

Male 8 2

Female 2 8

Overall, is there an effect of type of pet?

Overall, is there an effect of gender?

5 5

5

5

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owner

s

Male 2 8

Female 2 8

Main effect of pet type.

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owner

s

Male 2 4

Female 4 6

Main effect of pet type.Main effect of gender.

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owner

s

Male 2 2

Female 4 4

Main effect of gender.

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owner

s

Male 8 2

Female 5 5

Main effect of pet type.Interaction effect.

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owner

s

Male 8 2

Female 2 8

Interaction effect.

I believe that the type of pet owned by an individual both reflects and determines their mood and level of mental health. I would like to test whether or not scores on a common Depression survey are different among people who own dogs and cats.

Dog owners

Cat Owner

s

Male 2 5

Female 8 5

Main effect of gender.Interaction effect.

An example: Reading ability1st grade 2nd grade 3rd grade

Public 0 3 7

1 4 9

Private 4 4 6

5 1 5

Three Null Hypotheses:There is no main effect of type of school.There is no main effect of grade level.There is no interaction effect between type of school and grade level. 2

Three Alternative Hypotheses:There is a main effect of type of school.There is a main effect of grade level.There is an interaction effect between type of school and grade level. 2

An example: Reading ability

1st grade 2nd grade 3rd grade

Public 0 3 7

1 4 9

Private 4 4 6

5 1 5

A researcher would like to test the reading ability of students in 1st to 3rd grade to see whether grade affects reading performance. He believes, however, that whether the student attends a public or private school also affects this ability. He collects the data below from 4 first graders, 4 second graders, and 4 third graders (half of each are in private and half in public school. Test his hypotheses using alpha=.05.

An example: Reading ability

1st grade 2nd grade 3rd grade

Public 0 3 7

1 4 9

Private 4 4 6

5 1 5

Tests of Between-Subjects Effects

Dependent Variable: READING

66.417a 5 13.283 9.376 .008

200.083 1 200.083 141.235 .000

43.167 2 21.583 15.235 .004

.083 1 .083 .059 .816

23.167 2 11.583 8.176 .019

8.500 6 1.417

275.000 12

74.917 11

SourceCorrected Model

Intercept

GRADE

SCHOOL

GRADE * SCHOOL

Error

Total

Corrected Total

Type III Sumof Squares df Mean Square F Sig.

R Squared = .887 (Adjusted R Squared = .792)a.

A researcher would like to test the reading ability of students in 1st to 3rd grade to see whether grade affects reading performance. He believes, however, that whether the student attends a public or private school also affects this ability. He collects the data below from 4 first graders, 4 second graders, and 4 third graders (half of each are in private and half in public school. Test his hypotheses using alpha=.05.

An example: Reading abilityTests of Between-Subjects Effects

Dependent Variable: READING

66.417a 5 13.283 9.376 .008

200.083 1 200.083 141.235 .000

43.167 2 21.583 15.235 .004

.083 1 .083 .059 .816

23.167 2 11.583 8.176 .019

8.500 6 1.417

275.000 12

74.917 11

SourceCorrected Model

Intercept

GRADE

SCHOOL

GRADE * SCHOOL

Error

Total

Corrected Total

Type III Sumof Squares df Mean Square F Sig.

R Squared = .887 (Adjusted R Squared = .792)a.

Three Decisions:There is no main effect of type of school.There is a main effect of grade level.There is an interaction effect between type of school and grade level. 2

A research study was conducted to examine the impact of gender and eating a high protein breakfast on adolescents' performance during a physical education physical fitness test. Half of the subjects received a high protein breakfast and half were given a low protein breakfast. All of the adolescents, both male and female, were given a fitness test with high scores representing better performance. Test the hypothesis that gender and high-protein breakfasts affect fitness performance (use alpha=.05).

High-Protein Low-Protein

Male 107968

54745

Female 54632

34512

Step 1: Report the null hypothesisH0: There is no main effect of high-protein breakfast on fitness performance.H0: There is no main effect of gender on fitness performance.H0: There is no interaction effect between gender and high-protein breakfasts on fitness performance.

A research study was conducted to examine the impact of gender and eating a high protein breakfast on adolescents' performance during a physical education physical fitness test. Half of the subjects received a high protein breakfast and half were given a low protein breakfast. All of the adolescents, both male and female, were given a fitness test with high scores representing better performance. Test the hypothesis that gender and high-protein breakfasts affect fitness performance (use alpha=.05).

High-Protein Low-Protein

Male 107968

54745

Female 54632

34512

Step 1: Report the alternative hypothesisH1: There is a main effect of high-protein breakfast on fitness performance.H1: There is a main effect of gender on fitness performance.H1: There is an interaction effect between gender and high-protein breakfasts on fitness performance.

A research study was conducted to examine the impact of gender and eating a high protein breakfast on adolescents' performance during a physical education physical fitness test. Half of the subjects received a high protein breakfast and half were given a low protein breakfast. All of the adolescents, both male and female, were given a fitness test with high scores representing better performance. Test the hypothesis that gender and high-protein breakfasts affect fitness performance (use alpha=.05).

High-Protein Low-Protein

Male 107968

54745

Female 54632

34512

Step 2: Calculate the obtained statistic (notice, we do NOT find critical values for Two-Way ANOVA!)MUST USE SPSS:

A research study was conducted to examine the impact of gender and eating a high protein breakfast on adolescents' performance during a physical education physical fitness test. Half of the subjects received a high protein breakfast and half were given a low protein breakfast. All of the adolescents, both male and female, were given a fitness test with high scores representing better performance. Test the hypothesis that gender and high-protein breakfasts affect fitness performance (use alpha=.05).

High-Protein Low-Protein

Male 107968

54745

Female 54632

34512

Step 2: Calculate the obtained statistic (notice, we do NOT find critical values for Two-Way ANOVA!)MUST USE SPSS:Fbreakfast_type = 8.89; Fgender=20; Fbkfast*gender=2.22

A research study was conducted to examine the impact of gender and eating a high protein breakfast on adolescents' performance during a physical education physical fitness test. Half of the subjects received a high protein breakfast and half were given a low protein breakfast. All of the adolescents, both male and female, were given a fitness test with high scores representing better performance. Test the hypothesis that gender and high-protein breakfasts affect fitness performance (use alpha=.05).

High-Protein Low-Protein

Male 107968

54745

Female 54632

34512

Step 3: Make a decisionReject the null for main effect of high protein breakfast on performance.Reject the null for main effect of gender on fitness performance.Retain the null for interaction effect between high protein breakfast and gender on fitness performance.

A research study was conducted to examine the impact of gender and eating a high protein breakfast on adolescents' performance during a physical education physical fitness test. Half of the subjects received a high protein breakfast and half were given a low protein breakfast. All of the adolescents, both male and female, were given a fitness test with high scores representing better performance. Test the hypothesis that gender and high-protein breakfasts affect fitness performance (use alpha=.05).

High-Protein Low-Protein

Male 107968

54745

Female 54632

34512

Step 4: What does your decision mean?We see that males outperform females overall, and a high-protein breakfast improves performance overall as well, for males and females both.

Researchers have sought to examine the effect of stage of disease and various types of music on agitation levels in patients who have Alzheimer's disease. 24 patients were selected to participate in the study based on their stage of Alzheimer's disease (12 early and 12 late). Three forms of music were tested: 4 per stage listened to easy listening, 4 to Mozart, and 4 to Jazz. While listening to music, agitation levels were recorded for the patients with a high score indicating a higher level of agitation. Scores are recorded below. Use alpha=.05 to test whether stage of disease and music type affect agitation level.

Easy listening Mozart Jazz

Early stage 10997

2312

4454

Late stage 891010

4545

108109

Step 1: Report the null hypothesisH0: There is no main effect of disease stage on agitation level.H0: There is no main effect of music type on agitation level.H0: There is no interaction effect between disease stage and music type on agitation level.

Researchers have sought to examine the effect of stage of disease and various types of music on agitation levels in patients who have Alzheimer's disease. 24 patients were selected to participate in the study based on their stage of Alzheimer's disease (12 early and 12 late). Three forms of music were tested: 4 per stage listened to easy listening, 4 to Mozart, and 4 to Jazz. While listening to music, agitation levels were recorded for the patients with a high score indicating a higher level of agitation. Scores are recorded below. Use alpha=.05 to test whether stage of disease and music type affect agitation level.

Easy listening Mozart Jazz

Early stage 10997

2312

4454

Late stage 891010

4545

108109

Step 1: Report the alternative hypothesisH1: There is a main effect of disease stage on agitation level.H1: There is a main effect of music type on agitation level.H1: There is an interaction effect between disease stage and music type on agitation level.

Researchers have sought to examine the effect of stage of disease and various types of music on agitation levels in patients who have Alzheimer's disease. 24 patients were selected to participate in the study based on their stage of Alzheimer's disease (12 early and 12 late). Three forms of music were tested: 4 per stage listened to easy listening, 4 to Mozart, and 4 to Jazz. While listening to music, agitation levels were recorded for the patients with a high score indicating a higher level of agitation. Scores are recorded below. Use alpha=.05 to test whether stage of disease and music type affect agitation level.

Easy listening Mozart Jazz

Early stage 10997

2312

4454

Late stage 891010

4545

108109

Step 2: Calculate the obtained statistic (notice, we do NOT find critical values for Two-Way ANOVA!)MUST USE SPSS:

Researchers have sought to examine the effect of stage of disease and various types of music on agitation levels in patients who have Alzheimer's disease. 24 patients were selected to participate in the study based on their stage of Alzheimer's disease (12 early and 12 late). Three forms of music were tested: 4 per stage listened to easy listening, 4 to Mozart, and 4 to Jazz. While listening to music, agitation levels were recorded for the patients with a high score indicating a higher level of agitation. Scores are recorded below. Use alpha=.05 to test whether stage of disease and music type affect agitation level.

Easy listening Mozart Jazz

Early stage 10997

2312

4454

Late stage 891010

4545

108109

Step 2: Calculate the obtained statistic (notice, we do NOT find critical values for Two-Way ANOVA!)MUST USE SPSS:Fmusic_type=86.36; Fdisease_stage=54.86; Fmusic*diseasestage= 13.07

Researchers have sought to examine the effect of stage of disease and various types of music on agitation levels in patients who have Alzheimer's disease. 24 patients were selected to participate in the study based on their stage of Alzheimer's disease (12 early and 12 late). Three forms of music were tested: 4 per stage listened to easy listening, 4 to Mozart, and 4 to Jazz. While listening to music, agitation levels were recorded for the patients with a high score indicating a higher level of agitation. Scores are recorded below. Use alpha=.05 to test whether stage of disease and music type affect agitation level.

Easy listening Mozart Jazz

Early stage 10997

2312

4454

Late stage 891010

4545

108109

Step 3: Make a decisionReject the null for main effect of music type on agitation.Reject the null for main effect of disease stage on agitation.Reject the null for interaction effect between music type and disease stage on agitation.

Researchers have sought to examine the effect of stage of disease and various types of music on agitation levels in patients who have Alzheimer's disease. 24 patients were selected to participate in the study based on their stage of Alzheimer's disease (12 early and 12 late). Three forms of music were tested: 4 per stage listened to easy listening, 4 to Mozart, and 4 to Jazz. While listening to music, agitation levels were recorded for the patients with a high score indicating a higher level of agitation. Scores are recorded below. Use alpha=.05 to test whether stage of disease and music type affect agitation level. Easy listening Mozart Jazz

Early stage 10997

2312

4454

Late stage 891010

4545

108109

Step 4: What does your decision mean?Early and late stage patients differ overall, with early-stage showing less agitation than late-stage. Music type also has an effect: Mozart lessens agitation for both groups, while easy listening results in high agitation; Jazz affects agitation differentially: this is our interaction: the effect of music depends on whether the patient is early or late-stage; if late stage, Jazz is just as bad as easy listening, if early stage, it results in less agitation than easy listening.