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

Improve formatting of model coefficients in `summary` method in pymc-based experiments #359

Closed drbenvincent closed 1 week ago

drbenvincent commented 1 week ago

Similar to an improvement made in #355 to the summary method in scikit-learn based experiments, but for the pymc based experiments.

Printing of the model coefficients is now better horizontally aligned. The position of the coefficient values is now governed by the width of the longest coefficient label string.

I also re-ran the pymc based notebooks so that we get the updated summary output in the docs.


📚 Documentation preview 📚: https://causalpy--359.org.readthedocs.build/en/359/

review-notebook-app[bot] commented 1 week ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.10%. Comparing base (2916688) to head (267d7c7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #359 +/- ## ========================================== + Coverage 80.87% 83.10% +2.23% ========================================== Files 21 21 Lines 1668 1687 +19 ========================================== + Hits 1349 1402 +53 + Misses 319 285 -34 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.