Skip to main content

No project description provided

Project description

pysyncon codecov

A python module for the synthetic control method that provides implementations of:

  • Synthetic Control Method (Abadie & Gardeazabal 2003)
  • Robust Synthetic Control Method (Amjad, Shah & Shen 2018)
  • Augmented Synthetic Control Method (Ben-Michael, Feller & Rothstein 2021)
  • Penalized Synthetic Control Method (Abadie & L'Hour 2021)

The package also provides methods for performing placebo tests and generating confidence intervals.

The implementation of the synthetic control method aims to be reconcilable with the R package Synth and similarly the implementation of the Augmented synthetic control method and the R package augsynth.

Installation

Install it from PyPI using pip:

python -m pip install pysyncon

Usage

Documentation is available on github-pages. In the examples folder are notebooks reproducing the weights from:

  • The Economic Costs of Conflict: A Case Study of the Basque Country, Alberto Abadie and Javier Gardeazabal; The American Economic Review Vol. 93, No. 1 (Mar., 2003), pp. 113-132. (notebook here)
  • The worked example 'Prison construction and Black male incarceration' from the last chapter of 'Causal Inference: The Mixtape' by Scott Cunningham. (notebook here)
  • Comparative Politics and the Synthetic Control Method, Alberto Abadie, Alexis Diamond and Jens Hainmueller; American Journal of Political Science Vol. 59, No. 2 (April 2015), pp. 495-510. (notebook here)

Citation

If you use this package in your research, you can cite it as below.

@software{pysyncon,
  author = {Fordham, Stiofán},
  month = dec,
  title = {{pysyncon: a Python package for the Synthetic Control Method}},
  url = {https://github.com/sdfordham/pysyncon},
  year = {2022}
}

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

pysyncon-1.5.2.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

pysyncon-1.5.2-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file pysyncon-1.5.2.tar.gz.

File metadata

  • Download URL: pysyncon-1.5.2.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for pysyncon-1.5.2.tar.gz
Algorithm Hash digest
SHA256 ce4f6f0f77b39eef152854be98be16786a798f541b2f50512f0535fa92195784
MD5 2d1c0646aa4443a9996cdb7557ba3e3b
BLAKE2b-256 a500fb5bcd0bcd54243fc7dc9c2bd70b06c652e631a6f686942864cf5729e04c

See more details on using hashes here.

File details

Details for the file pysyncon-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: pysyncon-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for pysyncon-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 622651cb75201843563f47d0712c88bd6394f24ab5b7f2ad7767e53e48d719f2
MD5 1309db523bff3003313749b4cabd95ac
BLAKE2b-256 a4e7b46aebb012b889167013087aa1ef8f5363440aeb0cb0c6be0fd7b5c63f44

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