Hello,

I am new to coding in R and have come up with the following code to perform a nested 2-way ANOVA (with Tukey post-hoc) to be able to account for individual animal variability within each group. I am wondering if someone can confirm this is correct or provide alternative methods? I am assessing the effects of diet and stress on certain cellular outcomes, with n=3-5 animals/group. Thank you!

# Load required packages

library(lme4)

library(emmeans)

library(ggplot2)

# Convert factors

Data_For_R$Diet

More Colin J Murray's questions See All
Similar questions and discussions