Theil-Sen regression

This software takes two columns tables (X,Y) as input and computes the equation Y=aX+b and  X=f(Y) as well using Theil-Sen regression. This regression is much less sensitive to outliers than least squares regression.The variant used here, pairs up sample points by the rank of their x-coordinates (the point with the smallest coordinate being paired with the first point above the median coordinate, etc.) and computes the median of the slopes of the lines determined by these pairs of points.

Manual :

1- install Julia 0.7 or later free programming language and install packages :

ArgParse              : add ArgParse

Install Perl and Gnu parallel

2- unzip the software

3- copy your n tables in csv (TAB delimitated by default) files in the “data” directory.

The tables must have 2 columns.

- next lines : values X and Y separated by TAB

- no titles in first row

- no titles in first column

4- execute the software by the command : 

julia Theil-Sen-004.jl -f data/test.csv # tab separator by default

julia Theil-Sen-004.jl -s "\t" -f data/test.csv   # tab separator

or perl parallel_TS_001.pl for parallel processing

5- processed file is in the “result” directory.

6- equations are in the "equations" directory.