Performs multiple comparison analyses using Tukey's
Honestly Significant Difference (HSD) test, with intuitive letter
grouping of means for balanced and unbalanced designs. Accepts
input from 'formula', 'aov', 'lm', 'aovlist', and 'lmerMod' objects,
including straightforward handling of interactions. For more
details see Tukey (1949)
TukeyC is an R package that implements Tukey's Honestly Significant Difference (HSD) test as a multiple comparison method in the Analysis of Variance (ANOVA) context, including intuitive letter grouping of means for balanced and unbalanced designs.
formula, aov, lm, aovlist, and lmerMod objects.which, fl1, and fl2.emmeans) for unbalanced data.plot method with customisable dispersion bands (min–max, SD, CI, pooled CI).xtable; additional utilities include boxplot and cv.Install from CRAN:
install.packages("TukeyC")
Install the development version from GitHub:
# install.packages("remotes")
remotes::install_github("jcfaria/TukeyC")
library(TukeyC)
## Completely Randomized Design (CRD) — balanced
data(CRD1)
tk1 <- with(CRD1,
TukeyC(y ~ x,
data = dfm,
which = 'x'))
summary(tk1)
plot(tk1,
dispersion = 'sd',
d.col = 'steelblue')
## Randomized Complete Block Design (RCBD)
data(RCBD)
tk2 <- with(RCBD,
TukeyC(y ~ blk + tra,
data = dfm,
which = 'tra'))
summary(tk2)
plot(tk2,
dispersion = 'ci',
d.col = 'red')
/R: Core functions and S3 methods./man: Reference documentation (.Rd files) and dataset documentation./demo: Runnable demos for each experimental design./inst: Package citation file.Contributions are welcome. Open an issue or submit a pull request with:
To check and build locally:
R CMD check TukeyC
R CMD build TukeyC
R CMD INSTALL TukeyC_X.X-X.tar.gz
testthat) for all experimental designs.Developed by:
Faria, J. C.; Jelihovschi, E. G.; Allaman, I. B.
Universidade Estadual de Santa Cruz - UESC
Departamento de Ciencias Exatas - DCEX
Ilheus - Bahia - Brasil