Description Usage Arguments Examples
generate Dunnett-adjusted multiple comparisons using lsmeans package
1 | dunnett_contrasts(x, ref.index, factor, interaction)
|
x |
input if model fit ie lm, glm, glmer etc... |
ref.index |
index of reference level for multiple comparisons. You can find this using names(<fit>$coefficients) for lm or glm obj or names(fixef(<fit>)) for mixed models |
factor |
predictor variable for comparisons, usually a group ie genotype |
interaction |
optional term for interaction predictor if relevant. |
1 | contrasts<-dunnett_contrasts(fit, ref.index = 1, factor = "genotype", interaction = "food")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.