Mercurial > hg > cc > cirrus_work
comparison bin/spearman.py @ 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 | |
children | 5c5440e7854a |
comparison
equal
deleted
inserted
replaced
24:e6adf484ebb4 | 25:50337cd1d16f |
---|---|
1 #!/usr/bin/env python3 | |
2 import numpy as np | |
3 from numpy import loadtxt | |
4 from scipy import stats | |
5 import statsmodels.api as sm | |
6 import pylab | |
7 | |
8 import sys | |
9 | |
10 cc19=loadtxt(sys.argv[1],delimiter=',') | |
11 cc19s_o=stats.spearmanr(cc19,nan_policy='omit') | |
12 cc19s_x=np.array([np.concatenate((cc19s_o.correlation[i][1:i],cc19s_o.correlation[i][i+1:])) for i in range(1,101)]) | |
13 |