I have made an experiment where I measured the height of a plant with different genotypes (A,B or C). I ran a one-way ANOVA and I performed TukeyHSD as posthoc test. However, I would like to obtain the standard deviation of the difference in each comparison:
Here is my code:
#Create my dataset
genotype<-c("A","A","A","B","B","B","C","C","C")
height<-c(4,5,6,10,10,11,10,11,12)
data<-data.frame(genotype,height)
#I run the ANOVA and TukeyHSD
model<-aov(height~genotype,data=data)
TukeyHSD(model)
#It returns the difference of each comparison, but not the standard deviation. Although it can be obtain in SPSS, I would like to do it in R software.
Does anyone know if a specific R command exist? Or should I try to build my own formula creating a loop on my dataset?
Thank you in adavance. King regard.