Overview of marginaleffects
mainmarginaleffects is a package available for both R and Python designed to simplify the interpretation of statistical and machine learning models. It provides a unified interface to compute:
- Predictions: Estimating outcomes based on model parameters.
- Comparisons: Calculating contrasts, risk ratios, and other comparative metrics.
- Slopes: Computing partial derivatives and marginal effects.
- Hypothesis Tests: Performing statistical tests on model components.
The package supports over 100 different classes of statistical and machine learning models.