Skip to main content

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.4.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geodetector-0.0.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file geodetector-0.0.4.tar.gz.

File metadata

  • Download URL: geodetector-0.0.4.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

Hashes for geodetector-0.0.4.tar.gz
Algorithm Hash digest
SHA256 974298f17c9fe2bba6f1785ff953f5b304aa1f173fb12ced4439867bf80caf57
MD5 c3fbd098521e2a0637546f6147ce3402
BLAKE2b-256 1c9b5e9142bcbb939e3d74cb6582845a1b40a78244b0df47a04c466e2a5adf7c

See more details on using hashes here.

File details

Details for the file geodetector-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: geodetector-0.0.4-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

Hashes for geodetector-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5076d4be87da393ff4e7f4bdb4d3b26a109f14834d37fb08f0b18a6968d36562
MD5 dcb24630b308aacb9a93c0e58fccc5e3
BLAKE2b-256 39027ea0330e0d93377021ea62bde3e050c9b04320e8af442762508478e2dd6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page