0
$\begingroup$

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

$\endgroup$
0
$\begingroup$

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)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.