Skip to main content

Semiparametric Causal Inference for Right-Censored Outcomes with Many Weak Invalid Instruments

Project description

mawiisurv

mawiisurv implements G‐estimation methods for treatment effects under endogeneity, both with and without right‐censoring, using a variety of machine‐learning and classical estimators.


Features

  • Complete‐data G‐estimator (mawii_noncensor)
  • Right‐censoring G‐estimator (mawii_censor)
  • Multiple model backends:
    • Neural networks
    • Linear regression
    • Random forests
    • XGBoost
  • Choice of Generalized Empirical Likelihood (GEL) functions:
    • Empirical Tilting (ET)
    • Empirical Likelihood (EL)
    • Continuous Updating Estimator (CUE)

Installation

Install from PyPI:

pip install mawiisurv



Dependencies
Make sure you have the following installed (the minimal compatible versions shown):
numpy>=1.19
torch>=1.8
scipy>=1.5
scikit-learn>=0.24
xgboost>=1.3
numba>=0.53

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

mawiisurv-0.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

mawiisurv-0.2.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file mawiisurv-0.2.0.tar.gz.

File metadata

  • Download URL: mawiisurv-0.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for mawiisurv-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be560e52c34728bfaddc2cb998cb6fc8828084984b2b6fd7d844bf8f8255ab28
MD5 36f9139f89ae5f936132ef349858e28c
BLAKE2b-256 125ba5f02f5965d87829cae5633c7f3b2d0e191a6b77e30eb8cfb35e1a31ebc6

See more details on using hashes here.

File details

Details for the file mawiisurv-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mawiisurv-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for mawiisurv-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6479a721c95e4f45a06b5441782836e8870f0a05f06793e7826ff494cfa777e
MD5 f069a9ba1e09d6307860c02b2c97ad5d
BLAKE2b-256 6dafcff08a681dafc3239489cf9fe7440e5dfbd539cf6951b84ac74abea6eb5c

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