dunnett_contrasts: dunnett_contrasts

Description Usage Arguments Examples

View source: R/dunnett_contrasts.R

Description

generate Dunnett-adjusted multiple comparisons using lsmeans package

Usage

1

Arguments

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.

Examples

1
contrasts<-dunnett_contrasts(fit, ref.index = 1, factor = "genotype", interaction = "food")

mikeod38/dauergut documentation built on April 26, 2018, 4:15 p.m.