Changes between Version 5 and Version 6 of SOPs/anova


Ignore:
Timestamp:
03/11/14 16:49:12 (11 years ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/anova

    v5 v6  
    5252==== Dunnett ====
    5353  * 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")''
    5555
    5656{{{
    5757library(multcomp)
    58 summary(glht(lm(weight ~ group, data=strains), linfct=mcp(group="Dunnett")))
     58summary(glht(aov(weight ~ group, data=strains), linfct=mcp(group="Dunnett")))
    5959}}}
    6060