tabularTestPairwise

Display pairwise information about a multiple test between the methods

Usage

tabularTestPairwise(ph, value = "pvalue", charForNAs = "-")

Arguments

ph
The input testMultiplePairwise object
value
Indicates the metric to be displayed ("pvalue", "wtl")
charForNAs
Indicates the character included when there is not comparison available

Value

An extabular object

Description

This function obtain a pairwise table comparing the methods among themselves for the specified metrics. It takes an testMultiplePairwise object as an input.

Examples

# First we create an experiment from the wekaExperiment problem and prepare # it to apply the test: experiment <- expCreate(wekaExperiment, name="test", parameter="fold") experiment <- expReduce(experiment, "fold", mean) experiment <- expInstantiate(experiment, removeUnary=TRUE) # Then we perform a a testMultiplePairwise test procedure test <- testMultiplePairwise(experiment, "accuracy", "max") # Different tables can be obtained by using a range of metrics tabularTestPairwise(test, "pvalue")
$testPairwise method J48,no RandomForest,yes J48,yes NaiveBayes,no 1 RandomForest,no 1 1 0.4309044 0.06025137 2 J48,no NA 1 1.0000000 0.45981358 3 RandomForest,yes NA NA 1.0000000 1.00000000 4 J48,yes NA NA NA 1.00000000 5 NaiveBayes,no NA NA NA NA 6 NaiveBayes,yes NA NA NA NA 7 OneR,no NA NA NA NA NaiveBayes,yes OneR,no OneR,yes 1 0.01395224 4.125442e-05 6.205344e-06 2 0.17266188 1.668243e-03 3.376488e-04 3 0.61839883 1.529973e-02 4.012438e-03 4 1.00000000 1.822777e-01 6.476731e-02 5 1.00000000 8.818142e-01 4.462741e-01 6 NA 1.000000e+00 9.581391e-01 7 NA NA 1.000000e+00
tabularTestPairwise(test, "wtl")
$testPairwise method J48,no RandomForest,yes J48,yes NaiveBayes,no 1 RandomForest,no 9/0/6 12/1/2 13/0/2 11/0/4 2 J48,no <NA> 9/0/6 10/1/4 10/0/5 3 RandomForest,yes <NA> <NA> 10/0/5 10/0/5 4 J48,yes <NA> <NA> <NA> 10/0/5 5 NaiveBayes,no <NA> <NA> <NA> <NA> 6 NaiveBayes,yes <NA> <NA> <NA> <NA> 7 OneR,no <NA> <NA> <NA> <NA> NaiveBayes,yes OneR,no OneR,yes 1 12/0/3 15/0/0 15/0/0 2 11/0/4 15/0/0 15/0/0 3 12/0/3 14/0/1 14/0/1 4 9/0/6 13/0/2 14/0/1 5 9/1/5 9/0/6 10/0/5 6 <NA> 10/0/5 10/0/5 7 <NA> <NA> 3/12/0

Back to top

Built by staticdocs. Styled with bootstrap.