a tool for detect the relationship between variables
Project description
GeoDetector
This is a simple GeoDetector which can be used to the determinant power of a covariate X of Y.
Now only interaction_detect, and q_values is available.
Install
pip install geodetector
then the geodetector will be installed
here is a basic example
```python
from geodetector import geodetector
df = load_disease()
gd = GeoDetector(df,["type", "region", "level"], "incidence")
# directly plot the result
gd.plot() # show the q_values bar of each covariate
gd.plot_interaction() # show the interaction bar of each covariate
# interaction detect and save the result
result = gd.interaction_detect()
result.to_excel("q.xlsx")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geodetector-0.0.3.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geodetector-0.0.3.tar.gz.
File metadata
- Download URL: geodetector-0.0.3.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390e26cea58c87f3b2c34ff50d3e49e8ea0a3871abfdad11669ad5bb0801cb09
|
|
| MD5 |
4cf2793351271e8f602e2a619b458c53
|
|
| BLAKE2b-256 |
e67fe31ecc163a49178e5dbf9a5c7ef7af01e830471ba3d7ee37b1d8157cebb3
|
File details
Details for the file geodetector-0.0.3-py3-none-any.whl.
File metadata
- Download URL: geodetector-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079648be2d86e61ecc63ec780dde376e8745bc9e406f6e4e68f2bda61be199c4
|
|
| MD5 |
b5bf18f1817cc86d964504bc885af005
|
|
| BLAKE2b-256 |
9e35325919cd6664d1359cc14d4628be0122b87f7d7cbb2232cb0a0786574a8a
|