changeset 25:50337cd1d16f

framework for stats over results of rank correlations
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 14 Nov 2022 18:52:35 +0000
parents e6adf484ebb4
children 5c5440e7854a
files bin/spearman.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/spearman.py	Mon Nov 14 18:52:35 2022 +0000
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+import numpy as np
+from numpy import loadtxt
+from scipy import stats
+import statsmodels.api as sm
+import pylab
+
+import sys
+
+cc19=loadtxt(sys.argv[1],delimiter=',')
+cc19s_o=stats.spearmanr(cc19,nan_policy='omit')
+cc19s_x=np.array([np.concatenate((cc19s_o.correlation[i][1:i],cc19s_o.correlation[i][i+1:])) for i in range(1,101)])
+