xi correlation for tied data
Project description
xicor
xi correlation method adapted for python
What is xicor?
xicor is an implementation of the "xi" correlation metric described in Chatterjee, S. (2019, September 22). A new coefficient of correlation. arxiv.org/abs/1909.10140. It is based off the R code mentioned in the paper: https://statweb.stanford.edu/~souravc/xi.R
- Free software: MIT license
- Documentation: https://czbiohub.github.io/xicor
Installation
The package can be installed from PyPI using pip
here:
pip install xicor
Developmental install
To install this code and play around with the code locally, clone this github repository and use pip
to install:
git clone https://github.com/czbiohub/xicor.git
cd xicor
# The "." means "install *this*, the folder where I am now"
pip install .
# or you could install using
python setup.py install
Usage
from xicor.xicor import Xi
xi_obj = Xi([1, 2, 3], [1, 2, 3])
correlation = xi_obj.correlation
pvals = xi_obj.pval_asymptotic(ties=False, nperm=1000)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xicor-1.0.1.tar.gz
(139.0 kB
view details)
Built Distribution
xicor-1.0.1-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file xicor-1.0.1.tar.gz
.
File metadata
- Download URL: xicor-1.0.1.tar.gz
- Upload date:
- Size: 139.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 680bddddbccf4700342ab99b51896bcbd1e5144015709917bb7075a9dbf397cd |
|
MD5 | e4b982648769f6aaf47f12b297fe0f28 |
|
BLAKE2b-256 | 66da92a71e64520db90ecc3271ebe40da8a08a8e6d2ce2b02a78c3020bc62214 |
File details
Details for the file xicor-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: xicor-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c505183a7ee400ba88f84036e17e126459ae4481a6fde965a672b477315d85 |
|
MD5 | 18aba02930fd10569afdd5f79d313e66 |
|
BLAKE2b-256 | 8ee8eacceba161595f81f2a618a5700bed6007d4c1452227f32ebb364a56fa5b |