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.5.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.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

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

Hashes for geodetector-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d2d405e87d2e263c07aefdb72853998c81e4674817c1eab5e70f4363c940723f
MD5 a289fa443a62e4346e0ae0905955da63
BLAKE2b-256 f756cdc54fc91cda26b8bbb841f88bbd9716017ba2466d36aa859b3a0c89796d

See more details on using hashes here.

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

Hashes for geodetector-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7317799de66944760eb9958eeb5a921c3c223d36a4ab7d8b38afc268f44caa86
MD5 e817eed4e6310346306634e3cda8e703
BLAKE2b-256 c5c52d07938daf5fb7a47e44df46e49e1e5c621e18807628a64e23a52e2fe50a

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