Metadata-Version: 2.4
Name: powermean
Version: 0.2.0
Summary: Power-mean regression: logs, zeros, fixed effects and proportional effects
Author: David Benatia
License-Expression: BSD-3-Clause
License-File: LICENSE
License-File: licenses/NATIVE_NOTICE.md
License-File: licenses/PYBIND11_LICENSE
License-File: licenses/eigen/COPYING.BSD
License-File: licenses/eigen/COPYING.MPL2
License-File: licenses/eigen/HEADER_NOTICES.txt
License-File: licenses/pybind11/EXECUTORCH_LICENSE
License-File: licenses/pybind11/LLVM_LICENSE
License-File: src/powermean/_vendor/SKLEARN_COPYING
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Typing :: Typed
Project-URL: Homepage, https://github.com/dvbn/powermean
Project-URL: Documentation, https://github.com/dvbn/powermean/blob/main/docs/README.md
Project-URL: Issues, https://github.com/dvbn/powermean/issues
Project-URL: Changelog, https://github.com/dvbn/powermean/blob/main/CHANGELOG.md
Requires-Python: >=3.12
Requires-Dist: numpy>=2.3.1
Requires-Dist: pandas>=2.2.2
Requires-Dist: scipy>=1.15.0
Requires-Dist: formulaic>=1.0.0
Requires-Dist: within-py<0.5,>=0.4
Description-Content-Type: text/markdown


# Powermean

<img src="https://raw.githubusercontent.com/dvbn/powermean/9ca4917ebf7666fed58f842112ab28de8a37fd65/docs/assets/powermean-logo.png" align="right" width="120" alt="Powermean logo" />

Powermean estimates how a change in a regressor changes a conditional mean in
percentage terms. Fit outcomes in levels, including zeros, with Poisson or
Gamma pseudo-maximum likelihood. Use the same formula interface for other
power means, log-linear regression, and models with several fixed effects.
[Benatia, Bellégo and Pape (2026)](https://arxiv.org/abs/2203.11820v4)

Install with Python 3.12 or later.

```bash
python -m pip install "powermean>=0.2.0"
```

Start with the [worked regression](https://github.com/dvbn/powermean/blob/main/docs/methods/model.md#fit-one-conditional-mean-three-ways).
The [user guide](https://github.com/dvbn/powermean/blob/main/docs/README.md)
covers fixed effects, gravity, difference-in-differences and inference.
It shows how to [predict fitted means, recover effects, and compare covariate values](https://github.com/dvbn/powermean/blob/main/docs/reference/results.md#prediction-and-retention).

[Python functions](https://github.com/dvbn/powermean/blob/main/docs/reference/api.md) · [Powermean for R](https://github.com/dvbn/powermean-R)
