pymc-labs / CausalPy

A Python package for causal inference in quasi-experimental settings
https://causalpy.readthedocs.io
Apache License 2.0
829 stars 52 forks source link

Add test for API stability for a CausalPy example in Causal Inference and Discovery in Python by Aleksander Molak #356

Open drbenvincent opened 2 weeks ago

drbenvincent commented 2 weeks ago

On pages 304-307 there is an example using CausalPy in Causal Inference and Discovery in Python by @AlxndrMlk. We should create a new pytest file which tests the API to ensure that people running this code in the future are still able to replicate the results.

It should probably be done in a new test file, something like test_api_stability.py.

A choice will have to be about reading in the data remotely or placing it internally in this repo.

To be clear, I'm not proposing that we add that example to our docs, at least not at this point :)