Changes

Jump to: navigation, search

Statistical Analysis

384 bytes added, 18:10, 26 June 2012
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
TukeyHSTukeyHSD(wt.fit)</pre>This will tell you, separate from the interaction, whether each pairwise comparison is significant. You will have to repeat this by re-doing subset with each genotype and diet value as needed. Alternatively you can also account for the effect of one variable on the significance of the other. For example, if both diet and genotype interact, you may want to know what the effect of diet is, controlling for the effect of genotype. This is done like this:<pre>TukeyHSD(fit.aov, "diet") #This does pairwise comparisons of diet, while accounting for the effect of genotype
</pre>
This will tell you, separate from the interaction, whether each pairwise comparison is significant. You will have to repeat this by re-doing subset with each genotype and diet value as needed.
==Correlations==
This is when two variables are correlated rather than one of them being discreet

Navigation menu