The package computes point estimates and prediction intervals for Synthetic Control methods with multiple treated units and staggered adoption as proposed in Cattaneo, Feng, Palomba, and Titiunik (2024).
Project description
SCPI_PKG
The scpi_pkg
package provides Python implementations of estimation and inference procedures for Synthetic Control methods.
Authors
Matias D. Cattaneo (cattaneo@princeton.edu)
Yingjie Feng (fengyj@sem.tsinghua.edu.cn)
Filippo Palomba (fpalomba@princeton.edu)
Rocio Titiunik (titiunik@princeton.edu)
Website
https://nppackages.github.io/scpi/
Installation
To install/update use pip
pip install scpi_pkg
Usage
from from scpi_pkg.scdata import scdata
from from scpi_pkg.scdataMulti import scdataMulti
from scpi_pkg.scest import scest
from scpi_pkg.scpi import scpi
from scpi_pkg.scplot import scplot
from scpi_pkg.scplotMulti import scplotMulti
- Replication: Germany reunification example.
Dependencies
- cvxpy (>= 1.1.18)
- dask (>= 2021.04.0)
- ecos (>= 2.0.7)
- luddite (>= 1.0.2)
- numpy (>= 1.20.1)
- pandas (>= 1.5.0)
- plotnine (>= 0.8.0)
- scikit-learn (>= 0.24.1)
- scipy (>= 1.7.1)
- statsmodels (>= 0.12.2)
References
For overviews and introductions, see nppackages website.
Software and Implementation
- Cattaneo, Feng, Palomba, and Titiunik (2024+) scpi: Uncertainty Quantification for Synthetic Control Estimators. forthcoming at Journal of Statistical Software.
Technical and Methodological
- Cattaneo, Feng, and Titiunik (2021): Prediction Intervals for Synthetic Control Methods. Journal of the American Statistical Association.
- Cattaneo, Feng, Palomba, and Titiunik (2023): Uncertainty Quantification in Synthetic Controls with Staggered Treatment Adoption, working paper.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scpi_pkg-2.2.9.tar.gz
.
File metadata
- Download URL: scpi_pkg-2.2.9.tar.gz
- Upload date:
- Size: 59.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec9c3dfaf2a610a401c038504fce4a0482ef03cb772003da7dcfb517e4704b99 |
|
MD5 | 76dacf92701eaa5a97ebf966947d1453 |
|
BLAKE2b-256 | 5b67dcbc4d8ac1dd16b3ce15a5d65813fe29dbcd12777f876403c9e0f2d663a8 |
File details
Details for the file scpi_pkg-2.2.9-py3-none-any.whl
.
File metadata
- Download URL: scpi_pkg-2.2.9-py3-none-any.whl
- Upload date:
- Size: 62.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ed99880decbf75e7a164b9a5abbc74f695e30dce505850c5ce41f82ab1fe8b5 |
|
MD5 | f77735560f8680f0ebb42b8d25bb2192 |
|
BLAKE2b-256 | 0c75caf62d197183afd67c32d36e6aa9e0c54842fe6a2a9fe726b17e65b954af |