Skip to main content

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

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

Technical and Methodological

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scpi_pkg-3.0.1.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

scpi_pkg-3.0.1-py3-none-any.whl (61.9 kB view details)

Uploaded Python 3

File details

Details for the file scpi_pkg-3.0.1.tar.gz.

File metadata

  • Download URL: scpi_pkg-3.0.1.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for scpi_pkg-3.0.1.tar.gz
Algorithm Hash digest
SHA256 bcee52f529fe6120060d3a86ac6ac675a93fef58331be6a768806d346a88f35c
MD5 6bdb74c35f2a118610e0fa586950c23e
BLAKE2b-256 402158f95eb3e1f058bc8cfaba0d176077fbbeb7ff4241cd851e08eb5b6783a0

See more details on using hashes here.

File details

Details for the file scpi_pkg-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: scpi_pkg-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 61.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for scpi_pkg-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6855fae4e0444451293ec9609c91c978bf68bcb278593f9f7fd682876790ae2f
MD5 1873297c9580af06885076d2e3fcf7bf
BLAKE2b-256 1827c859c239b61043bdc22260cbeb52e3b5ea0b96b2fa48de8a4201ef3e2ed7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page