Description Usage Arguments Value Examples
This function performs a Wilcoxon paired test to compare the methods of an experiment consisting exactly on two of them. If more methods are present, then a multiple comparison test must be applied.
1 | testPaired(e, output, rankOrder = "max", alpha = 0.05)
|
e |
Input experiment |
output |
The output for which the tet will be performed. |
rankOrder |
The optimization strategy, can be either maximizing "max" or minimizing "min" the target output variable. |
alpha |
The significance level used for the whole testing procedure. |
a testPaired object
1 2 3 4 5 6 7 8 9 10 11 12 | # First we create an experiment from the wekaExperiment problem and prepare
# it to apply the test, we must subset it to only two methods:
experiment <- expCreate(wekaExperiment, name="test", parameter="fold")
experiment <- expSubset(experiment, list(method = c("J48", "NaiveBayes")))
experiment <- expSubset(experiment, list(featureSelection = c("no")))
experiment <- expReduce(experiment, "fold", mean)
experiment <- expInstantiate(experiment, removeUnary=TRUE)
# Then we perform a Wilcoxon test procedure
test <- testPaired(experiment, "accuracy", "max")
summary(test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.