summaryrefslogtreecommitdiff
path: root/benchmark/compare.R
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/compare.R')
-rw-r--r--benchmark/compare.R12
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/compare.R b/benchmark/compare.R
index b4316ca7f8..3f37cad74a 100644
--- a/benchmark/compare.R
+++ b/benchmark/compare.R
@@ -46,7 +46,7 @@ statistics = ddply(dat, "name", function(subdat) {
improvement = sprintf("%.2f %%", ((new.mu - old.mu) / old.mu * 100));
p.value = NA;
- significant = 'NA';
+ confidence = 'NA';
# Check if there is enough data to calulate the calculate the p-value
if (length(old.rate) > 1 && length(new.rate) > 1) {
# Perform a statistics test to see of there actually is a difference in
@@ -56,19 +56,19 @@ statistics = ddply(dat, "name", function(subdat) {
# Add user friendly stars to the table. There should be at least one star
# before you can say that there is an improvement.
- significant = '';
+ confidence = '';
if (p.value < 0.001) {
- significant = '***';
+ confidence = '***';
} else if (p.value < 0.01) {
- significant = '**';
+ confidence = '**';
} else if (p.value < 0.05) {
- significant = '*';
+ confidence = '*';
}
}
r = list(
improvement = improvement,
- significant = significant,
+ confidence = confidence,
p.value = p.value
);
return(data.frame(r));