Get startedGet started for free

F-ratio and p-value

To do the ANOVA analysis you actually need the F-ratio and the corresponding p-value. These are easy to calculate now that you have everything else.

Remember the formula to calculate the F-ratio is given by

$$ \begin{aligned} F & = \frac{ms_a}{ms_{s\times a}}\end{aligned}$$

This exercise is part of the course

Intro to Statistics with R: Repeated measures ANOVA

View Course

Exercise instructions

  • Calculate the F-ratio using your previous results.
  • Calculate the corresponding p-value using pf(). First you have to fill in the value of the F-ratio. Complete the command by filling in the correct number of degrees of freedom for the F-distribution: df1 and df2 for the second and the third arguments, respectively.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

## wm, ss_sa, and ss_subjects are available in your workspace

# Calculate the F-ratio
f_rat <- 

# Define the degrees of freedom of the F-distribution
df1 <- 
df2 <- 

# Calculate the p-value
p <- 1 - pf(___, ___, ___)
Edit and Run Code