From af55803a56d6bd3575085e77b21ba85d3ea13a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Wed, 22 Aug 2018 00:18:00 +0200 Subject: [PATCH 1/5] style fixes --- tools/correlation/cor.xml | 64 ++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/tools/correlation/cor.xml b/tools/correlation/cor.xml index 5186dbaa..073b8a3e 100644 --- a/tools/correlation/cor.xml +++ b/tools/correlation/cor.xml @@ -1,33 +1,35 @@ - - for numeric columns - - rpy - - cor.py $input1 $out_file1 $numeric_columns $method - - - - - - - - - - - - - - - - - - - - - - + + for numeric columns + + rpy + + + cor.py '$input1' '$out_file1' $numeric_columns $method + + + + + + + + + + + + + + + + + + + + + + + .. class:: infomark @@ -97,5 +99,5 @@ This tool computes the matrix of correlation coefficients between numeric column 0.730635686279 1.0 So the correlation for our twenty cases is .73, which is a fairly strong positive relationship. - + From 0ea2a6faa87b0ec6a33735e176d5b9d4461e9737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Wed, 22 Aug 2018 00:18:39 +0200 Subject: [PATCH 2/5] output is tabular --- tools/correlation/cor.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/correlation/cor.xml b/tools/correlation/cor.xml index 073b8a3e..f7ff0d45 100644 --- a/tools/correlation/cor.xml +++ b/tools/correlation/cor.xml @@ -16,7 +16,7 @@ - + @@ -28,6 +35,12 @@ + + + + + + diff --git a/tools/correlation/test-data/cor.tabular b/tools/correlation/test-data/cor.tabular index 035e6f11..53a91de2 100644 --- a/tools/correlation/test-data/cor.tabular +++ b/tools/correlation/test-data/cor.tabular @@ -18,4 +18,4 @@ Person Height Self Esteem 1 65 4.1 1 67 3.8 1 63 3.4 -2 61 3.6 \ No newline at end of file +2 61 3.6 diff --git a/tools/correlation/test-data/cor_out.txt b/tools/correlation/test-data/cor_out.txt index 376ab447..535cb1b2 100644 --- a/tools/correlation/test-data/cor_out.txt +++ b/tools/correlation/test-data/cor_out.txt @@ -1,2 +1,2 @@ -1.0 0.730635686279 -0.730635686279 1.0 +1.0 0.7306356862792351 +0.7306356862792351 1.0