915
edits
Changes
added section about accounting for other effects within the Interaction section
Residuals 8 4.59 0.57
</pre>
*First look at the genotype:diet column. If this p-value is <0.05 then you have a significant interaction between genotype and diet. If this is the case move on to [[#No Main EffectInteraction]] to separate out your groups. If this value is >0.05 then there is no interaction, check if the p value for either of your groups is significant. If it is (and there is no interaction) then go ahead to [[#Main Efect]]. In the above example there is no interaction, but there are two main effects:
====Main Effect====
This will generate all possible pairwise comparisons between your groups
====No Main EffectInteraction====
If there is an interaction, you will need to separate out your groups and compare them separately. For example this will subset out just "WT" genotypes and analyse those.
<pre>
wt.fit <- aov(values ~ diet, data=dataset)
summary(wt.fit) #at this point you can go on to a TukeyHSD if you have >2 diet values and a significant ANOVA
</pre>
==Correlations==
This is when two variables are correlated rather than one of them being discreet