diff --git a/grails-app/services/ChartService.groovy b/grails-app/services/ChartService.groovy
index 7c1bf733a..4dea86886 100644
--- a/grails-app/services/ChartService.groovy
+++ b/grails-app/services/ChartService.groovy
@@ -207,7 +207,7 @@ class ChartService {
def double [] t = (double[])result[2].conceptData.toArray()
result.commons.tstat = TestUtils.t(o, t).round(5)
- result.commons.pvalue = TestUtils.tTest(o, t).round(5)
+ result.commons.pvalue = String.format("%1.3e", TestUtils.tTest(o, t))
result.commons.significance = TestUtils.tTest(o, t, 0.05)
if (result.commons.significance)
@@ -270,7 +270,7 @@ class ChartService {
def double [] t = (double[])result[2].conceptData.toArray()
result.commons.tstat = TestUtils.t(o, t).round(5)
- result.commons.pvalue = TestUtils.tTest(o, t).round(5)
+ result.commons.pvalue = String.format("%1.3e", TestUtils.tTest(o, t))
result.commons.significance = TestUtils.tTest(o, t, 0.05)
if (result.commons.significance)
@@ -322,7 +322,7 @@ class ChartService {
def long [][] counts = [result[1].conceptData.values(), result[2].conceptData.values()]
result.commons.chisquare = TestUtils.chiSquare(counts).round(5)
- result.commons.pvalue = TestUtils.chiSquareTest(counts).round(5)
+ result.commons.pvalue = String.format("%1.3e", TestUtils.chiSquareTest(counts))
result.commons.significance = TestUtils.chiSquareTest(counts, 0.05)
if (result.commons.significance)
diff --git a/grails-app/views/chart/_conceptsAnalysis.gsp b/grails-app/views/chart/_conceptsAnalysis.gsp
index 97b5a4175..ee11584e2 100644
--- a/grails-app/views/chart/_conceptsAnalysis.gsp
+++ b/grails-app/views/chart/_conceptsAnalysis.gsp
@@ -9,14 +9,24 @@
${concept.value?.commons?.conceptKey ?: ""}
-
+
${concept.value?.commons?.testmessage}
- With a p-value of ${concept.value?.commons.pvalue} for a T-stat at ${concept.value?.commons.tstat}
+
+ | p-value |
+ ${concept.value?.commons.pvalue} |
+
+ | t-statistic |
+ ${concept.value?.commons.tstat} |
+
+
- With a p-value of ${concept.value?.commons.pvalue} for a χ² at ${concept.value?.commons.chisquare}
+
+ | p-Value | ${concept.value?.commons.pvalue} |
+ | χ² | ${concept.value?.commons.chisquare} |
+
Variable arithmetically undefined (NaN)
diff --git a/web-app/css/datasetExplorer.css b/web-app/css/datasetExplorer.css
index 287be283a..2beefd035 100644
--- a/web-app/css/datasetExplorer.css
+++ b/web-app/css/datasetExplorer.css
@@ -238,6 +238,20 @@ div.analysissubtitle {
margin-bottom: 15px;
}
+table.stats_table {
+ margin-top: 5px;
+ border-collapse: collapse;
+}
+
+ table.stats_table td {
+ border: 1px solid black;
+ padding: 5px;
+}
+
+ .stats_title {
+ font-weight: bold;
+}
+
div.smalltitle {
padding-bottom: 5px !important;
}