Metadata-Version: 2.4
Name: trop
Version: 0.1.1
Summary: Triply Robust Panel (TROP) estimator: weighted TWFE with optional low-rank adjustment.
Author: Susan Athey, Guido Imbens, Zhaonan Qu, Davide Viviano
License-Expression: MIT
Project-URL: Homepage, https://github.com/zhaonanq/TROP
Project-URL: Repository, https://github.com/zhaonanq/TROP
Project-URL: Issues, https://github.com/zhaonanq/TROP/issues
Keywords: causal-inference,panel-data,factor-models,difference-in-differences,synthetic-control,synthetic-controls,trop,twfe
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.23
Requires-Dist: cvxpy>=1.4
Requires-Dist: osqp>=0.6.5
Requires-Dist: scs>=3.2.4
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: ruff>=0.5.0; extra == "dev"
Requires-Dist: black>=24.0.0; extra == "dev"
Dynamic: license-file

# TROP: Triply Robust Panel Estimator

This package provides a Python implementation of the **Triply Robust Panel (TROP)** estimator introduced in:

> Susan Athey, Guido Imbens, Zhaonan Qu, Davide Viviano (2025).  
> *Triply Robust Panel Estimators*.  
> arXiv:2508.21536.

The initial release (v0.1.0) exposes the function:

- `TROP_TWFE_average(Y, W, treated_units, lambda_unit, lambda_time, lambda_nn, treated_periods=..., solver=...)`

which estimates an average treatment effect `tau` in panel settings using a weighted TWFE objective with optional low-rank adjustment.

---

## Installation

```
pip install trop
```
