0

I am trying to calculate if my residuals are normally distributed for my two way ANOVA with repeated measures on Rstudio.

However, all the tutorials I find seem to specific to one way within ANOVAs or two way between ANOVAs.

If anyone knows the R script to determine the residuals and graph them It would be very much appreciated!

Thank you

1 Answers1

0

If you want to check the histogram of residuals:

hist(your_model$residuals)

If in top of that you want to explicitly test for normality:

shapiro.test(your_model$residuals)

But I would more carefully check the plot of standardized residuals vs Fitted values with:

plot(your_model)
OTStats
  • 215
  • 1
  • 3
  • 10
glagla
  • 56
  • 3