pysyncon


Namepysyncon JSON
Version 1.5.1 PyPI version JSON
download
home_pagehttps://github.com/sdfordham/pysyncon/
SummaryNone
upload_time2024-05-22 20:31:57
maintainerNone
docs_urlNone
authorStiofán Fordham
requires_python>=3.8
licenseMIT License
keywords synth augsynth synthetic-control-method causal-inference
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

# pysyncon ![](https://img.shields.io/badge/python-3.8+-blue.svg) [![codecov](https://codecov.io/gh/sdfordham/pysyncon/graph/badge.svg?token=hmi7xHQ4OT)](https://codecov.io/gh/sdfordham/pysyncon)

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](https://CRAN.R-project.org/package=Synth) and similarly the implementation of the Augmented synthetic control method and the R package [augsynth](https://github.com/ebenmichael/augsynth).

## Installation
Install it from PyPI using pip:

````bash
python -m pip install pysyncon
````

## Usage

Documentation is available on [github-pages](https://sdfordham.github.io/pysyncon/). 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](examples/basque.ipynb))
- The worked example 'Prison construction and Black male incarceration' from the last chapter of 'Causal Inference: The Mixtape' by Scott Cunningham. ([notebook here](examples/texas.ipynb))
- 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](examples/germany.ipynb))

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sdfordham/pysyncon/",
    "name": "pysyncon",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Synth, augsynth, synthetic-control-method, causal-inference",
    "author": "Stiof\u00e1n Fordham",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/19/c9/17bbc5cc9fac5fb98935ba83f1ca9e74fd6e3a7112f5671802e46dc1c827/pysyncon-1.5.1.tar.gz",
    "platform": null,
    "description": "\n\n# pysyncon ![](https://img.shields.io/badge/python-3.8+-blue.svg) [![codecov](https://codecov.io/gh/sdfordham/pysyncon/graph/badge.svg?token=hmi7xHQ4OT)](https://codecov.io/gh/sdfordham/pysyncon)\n\nA python module for the synthetic control method that provides implementations of:\n\n- Synthetic Control Method (Abadie & Gardeazabal 2003)\n- Robust Synthetic Control Method (Amjad, Shah & Shen 2018)\n- Augmented Synthetic Control Method (Ben-Michael, Feller & Rothstein 2021)\n- Penalized Synthetic Control Method (Abadie & L'Hour 2021)\n\nThe package also provides methods for performing placebo tests and generating confidence intervals.\n\nThe implementation of the synthetic control method aims to be reconcilable with the R package [Synth](https://CRAN.R-project.org/package=Synth) and similarly the implementation of the Augmented synthetic control method and the R package [augsynth](https://github.com/ebenmichael/augsynth).\n\n## Installation\nInstall it from PyPI using pip:\n\n````bash\npython -m pip install pysyncon\n````\n\n## Usage\n\nDocumentation is available on [github-pages](https://sdfordham.github.io/pysyncon/). In the examples folder are notebooks reproducing the weights from:\n\n- 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](examples/basque.ipynb))\n- The worked example 'Prison construction and Black male incarceration' from the last chapter of 'Causal Inference: The Mixtape' by Scott Cunningham. ([notebook here](examples/texas.ipynb))\n- 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](examples/germany.ipynb))\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": null,
    "version": "1.5.1",
    "project_urls": {
        "Homepage": "https://github.com/sdfordham/pysyncon/"
    },
    "split_keywords": [
        "synth",
        " augsynth",
        " synthetic-control-method",
        " causal-inference"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "76c00f7813ab7a6f6ef23f88f925cb9a2fc3c6a453b9085ac2b0a6bce09ac341",
                "md5": "56b5f3ceb9d5627e1fe980c4700b2f92",
                "sha256": "073b086c246c9faa832bfd15d036558e01816ad5f9121be35da324a115d22710"
            },
            "downloads": -1,
            "filename": "pysyncon-1.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "56b5f3ceb9d5627e1fe980c4700b2f92",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 27778,
            "upload_time": "2024-05-22T20:31:54",
            "upload_time_iso_8601": "2024-05-22T20:31:54.759264Z",
            "url": "https://files.pythonhosted.org/packages/76/c0/0f7813ab7a6f6ef23f88f925cb9a2fc3c6a453b9085ac2b0a6bce09ac341/pysyncon-1.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19c917bbc5cc9fac5fb98935ba83f1ca9e74fd6e3a7112f5671802e46dc1c827",
                "md5": "3ba94218cb0fe3da2aa68f52f783a205",
                "sha256": "f7bbbb1abb3d4e394a1dd6155d3344dbdceae4e2946c9ea2811f96c73f7ab5e0"
            },
            "downloads": -1,
            "filename": "pysyncon-1.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3ba94218cb0fe3da2aa68f52f783a205",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 34928,
            "upload_time": "2024-05-22T20:31:57",
            "upload_time_iso_8601": "2024-05-22T20:31:57.848474Z",
            "url": "https://files.pythonhosted.org/packages/19/c9/17bbc5cc9fac5fb98935ba83f1ca9e74fd6e3a7112f5671802e46dc1c827/pysyncon-1.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-22 20:31:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sdfordham",
    "github_project": "pysyncon",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pysyncon"
}
        
Elapsed time: 0.29660s