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.5.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.5.tar.gz.
File metadata
- Download URL: geodetector-0.0.5.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 |
d2d405e87d2e263c07aefdb72853998c81e4674817c1eab5e70f4363c940723f
|
|
| MD5 |
a289fa443a62e4346e0ae0905955da63
|
|
| BLAKE2b-256 |
f756cdc54fc91cda26b8bbb841f88bbd9716017ba2466d36aa859b3a0c89796d
|
File details
Details for the file geodetector-0.0.5-py3-none-any.whl.
File metadata
- Download URL: geodetector-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.9 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 |
7317799de66944760eb9958eeb5a921c3c223d36a4ab7d8b38afc268f44caa86
|
|
| MD5 |
e817eed4e6310346306634e3cda8e703
|
|
| BLAKE2b-256 |
c5c52d07938daf5fb7a47e44df46e49e1e5c621e18807628a64e23a52e2fe50a
|