mc.anova {mt} | R Documentation |
Multiple Comparison by 'ANOVA' and Pairwise Comparison by 'HSDTukey Test'
Description
Performs multiple comparison by ANOVA
and pairwise comparison by
HSDTukey Test
.
Usage
mc.anova(x, ...)
Arguments
x |
A matrix or data frame to be tested. |
... |
Additional arguments pass to |
Value
A list with components:
anova |
Hypothesis test results of |
tukey |
Hypothesis test results of |
gl.pval |
Global or overall p value returned by |
mc.pval |
Pairwise p value returned by |
Author(s)
Wanchang Lin
See Also
Examples
# Iris data
data(iris)
x <- subset(iris, select = -Species)
y <- iris$Species
method <- c("randomForest","svm","pcalda","knn")
pars <- valipars(sampling="boot", niter = 10, nreps=4)
res <- maccest(x, y, method=method, pars=pars, comp="anova")
res
htest <- mc.anova(res$acc.iter)
oldpar <- par(mar = c(5,10,4,2) + 0.1)
plot(htest$tukey,las=1) ## plot the tukey results
par(oldpar)
[Package mt version 2.0-1.20 Index]