mc.anova | R Documentation |
Performs multiple comparison by ANOVA
and pairwise comparison by
HSDTukey Test
.
mc.anova(x, ...)
x |
A matrix or data frame to be tested. |
... |
Additional arguments pass to |
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 |
Wanchang Lin
maccest
, mc.fried
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.