Skip to content

Python and R packages for "Nonparametric Inference on Dose-Response Curves Without the Positivity Condition"

License

Notifications You must be signed in to change notification settings

zhangyk8/npDoseResponse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI pyversions PyPI version Downloads Documentation Status

Nonparametric Inference on Dose-Response Curve and its Derivative

This package provides the implementation of estimating and conducting valid inference on the covariate-adjusted regression function (or the dose-response curve in causal inference) and its derivative through the proposed integral estimator and a localized derivative estimator in [1]. It also implements the regression adjustment (RA), inverse probability weighting (IPW) and doubly robust (DR) estimators of the dose-response curve and its derivative function with and without the positivity condition in [2]. All the code for simulations and real-world applications in our papers are documented in Paper 1 and Paper 2.

Installation guide

npDoseResponse requires Python 3.8+ (earlier version might be applicable) and NumPy. To install the latest version of npDoseResponse from this repository, run:

python setup.py install

To pip install a stable release, run:

pip install npDoseResponse

References

[1] Y. Zhang, Y.-C. Chen, and A. Giessing (2024+) Nonparametric Inference on Dose-Response Curves Without the Positivity Condition arXiv:2405.09003.

[2] Y. Zhang and Y.-C. Chen (2025+) Doubly Robust Inference on Causal Derivative Effects for Continuous Treatments arXiv:2501.06969.