Changes between Version 5 and Version 6 of SOPs/anova
- Timestamp:
- 03/11/14 16:49:12 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/anova
v5 v6 52 52 ==== Dunnett ==== 53 53 * Useful if you want to compare a reference group to all other groups (instead of doing an all vs. all comparison) 54 * The first group ("a" in this example) is used as the reference group , so name your groups so this is the case.54 * The first group ("a" in this example) is used as the reference group. If this is not the case, use the relevel() command to set the reference, like ''strains$group = relevel(strains$group, "reference")'' 55 55 56 56 {{{ 57 57 library(multcomp) 58 summary(glht( lm(weight ~ group, data=strains), linfct=mcp(group="Dunnett")))58 summary(glht(aov(weight ~ group, data=strains), linfct=mcp(group="Dunnett"))) 59 59 }}} 60 60