Está en la página 1de 4

PRACTICAL EXERCISE 7- One Way ANOVA

The aim of the practical exercise today is to demonstrate how we test comparing 3
means both using hand calculation and using R. The exercise today is structured as
follows:
1) Manual calculations of one way within subjects ANOVA
2) Running ANOVA using R with the dataset provided
1. Manual calculations of ANOVA (ANOVA Related Cal D)
1.a Using the formulas for the One Way Repeated Measures ANOVA below,
calculate the F statistic for the data.

Step 1: Calculate sum of all scores squared X 2


Answer:
Total Squares= 660

( X) 2

Step 2: Calculate the correction factor


N
G= Grand total of all of the scores added together
N= number of scores in the table
Answer:
Correction Factor

=10816/18
=600.8889

Step 3: Calculate the Model Sum of Squares


C2

SSModel =
correction _ factor
N
DoFModel= k-1

where:
C= Total score per condition (i.e. column sum)
N= Amount of participants in the experiment (6)
k= Amount of conditions (in this case, groups)

DoFModel= Model Degrees of Freedom


Answer:
C - Group 1= 45; C Group 2= 36; C Group 3= 23
SSModel= ((2025+1296+529) / 6)- 600.889
= ((2025+1296+529) / 6)- 600.889
= ((3850) / 6)- 600.889
= 641.6667-600.889
= 40.77778
DoFModel= 3-1=2

Step 4: Calculate the Error Sum of Squares

C P

SSError = X

+ correction _ factor

DoFError= (k-1)(N-1)
Where:
P= total score per participant (i.e. row sum)
N= Number of participants in the experiment
k= number of conditions in the experiment
DoFError= Error Degrees of Freedom
Answer:
P- Participant (row) 1= 19; Participant (row) 2=17; Participant (row) 3=16
Participant (row) 4=16; Participant (row) 5=21; Participant (row) 6=15
SSerror = 660- 641.6667-((361+289+256+256+441+225)/3)+600.889
SSerror = 660- 641.6667-(1828/3)+600.889
SSerror = 660- 641.6667-609.3333+600.889
SSerror = 9.889
DoFError= 2x5=10
Step 5: Calculate Mean Square Model & Mean Square Error

MSModel =

SSmod el
DoFmod el

MSError =

SSError
DoFError

Answer:
MS model= 40.77778/2 = 20.38889
MS error= 9.889/10 = 0.9889

Step 6: Calculate the F Ratio


F=

MSModel
MSError

Answer:

F=20.38889/0.9889 =20.61775

----------CALL OVER A DEMONSTRATOR TO CHECK YOUR WORK--------

También podría gustarte