mc.anova: Multiple Comparison by 'ANOVA' and Pairwise Comparison by...

View source: R/mt_maccest.R

mc.anovaR 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 anova or HSDTukey test.

Value

A list with components:

anova

Hypothesis test results of anova.

tukey

Hypothesis test results of HSDTukey.test.

gl.pval

Global or overall p value returned by anova.

mc.pval

Pairwise p value returned by HSDTukey.test.

Author(s)

Wanchang Lin

See Also

maccest, mc.fried

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)

mt documentation built on June 22, 2024, 12:24 p.m.

Related to mc.anova in mt...