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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mt_maccest.R

Description

Performs multiple comparison by ANOVA and pairwise comparison by HSDTukey Test.

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# 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 Feb. 2, 2022, 1:07 a.m.

Related to mc.anova in mt...