Hi all,
I just published a Python version of `marginaleffects` to Github:
https://github.com/vincentarelbundock/pymarginaleffectsIt is a collection of helper functions to easily compute many quantities of interest based on `statsmodels` objects:
- Predictions
- Slopes (and elasticities)
- Comparisons: contrasts, differences, risk ratios, lift, odds, etc.
- Different effects sizes, ex: the effect of a change of 1 standard deviation on the predicted outcome.
- Delta method standard errors.
- Linear and non-linear hypothesis tests on coefficients, slopes, contrasts, or predictions.
- Equivalence tests
This is still at the dangerous "alpha" release; there are many rough edges, and some numeric results still look fishy to me. But it is far enough as a proof of concept that I thought I'd seek some feedback and bug reports from the community.
Note that this is an incomplete port of my `marginaleffects` package for R. You can learn more about it on this website, which includes 25+ chapters of tutorials and case studies:
https://vincentarelbundock.github.io/marginaleffects If you have time to check it out, let me know what you think!
Best,
Vincent