tukey: Tukey Contrasts

View source: R/tukey.R

tukeyR Documentation

Tukey Contrasts

Description

Compute Tukey Contrasts for all levels of a categorical predictor. Takes simple linear regression models and multiple linear regression models, as well as linear mixed effects models as input.

Usage

tukey(model, predictor)

Arguments

model

The model object, created by lm() or lmer().

predictor

The categorical predictor for which Tukey Contrasts should be computed.

Value

A list object if assigned to a variable name.

Author(s)

D. Schmitz

References

Hothorn, T., Bretz, F., & Westfall, P. (2008). Simultaneous Inference in General Parametric Models. Biometrical Journal 50(3), 346-363.

Examples

data("data_s")

mdl <- lm(sDur ~ pauseBin, data = data_s)

tukey(model = mdl, predictor = pauseBin)


dosc91/SfL documentation built on Sept. 14, 2024, 6:44 a.m.