Metadata-Version: 2.4
Name: powermean
Version: 0.1.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 is a Python package for fitting power-mean regressions and estimating proportional effects.** It implements the framework of Benatia et al. (2026), *Dealing with Logs and Zeros in Regression Models*, including exponential conditional-mean models and log-linear regressions. With `pm.fit`, choose the conditional mean and the working variance separately, model outcomes in levels with observed zeros, and report proportional effects with confidence intervals. [Paper](https://arxiv.org/abs/2203.11820v4)

Estimate multiple high-dimensional fixed-effect blocks jointly, or cancel a selected block while retaining the others. Powermean provides bias corrections that address the incidental-parameters problem in short panels and three-way gravity models. The same formula interface takes you from a simple conditional-mean regression to three-way gravity and nonlinear difference-in-differences.

```bash
python -m pip install powermean
```

Use Python 3.12 or later. The release provides native wheels for CPython 3.12–3.14
on Linux, macOS, and Windows for x86-64 and ARM64.

[User guide](https://github.com/dvbn/powermean/blob/main/docs/README.md) · [Function index](https://github.com/dvbn/powermean/blob/main/docs/reference/api.md)
· [Gravity walkthrough](https://github.com/dvbn/powermean/blob/main/docs/get-started.md) · [Nonlinear DiD](https://github.com/dvbn/powermean/blob/main/docs/examples/nonlinear-did.md)
