Learn R Programming

mosaic (version 0.6-2)

TukeyHSD.lm: Additional interfaces to TukeyHSD

Description

TukeyHSD requires use of aov. Since this is a hinderence for beginners, wrappers have been provided to remove this need.

Usage

## S3 method for class 'lm':
TukeyHSD(x, which, ordered = FALSE,
    conf.level = 0.95, ...)

## S3 method for class 'formula': TukeyHSD(x, which, ordered = FALSE, conf.level = 0.95, data = parent.frame(), ...)

Arguments

x
an object, for example of class lm or formula
data
a data frame. NB: This does not come second in the argument list.
which,ordered,conf.level,...
just as in TukeyHSD from the base package