causalipy-0.1.1
توضیحات
Causal Methods Implemented in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | causalipy-0.1.1 |
| نام | causalipy |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Moritz Helm |
| ایمیل نویسنده | mohelm84@gmail.com |
| آدرس صفحه اصلی | https://github.com/mohelm/causalipy |
| آدرس اینترنتی | https://pypi.org/project/causalipy/ |
| مجوز | MIT |
# CausaliPy
Causal Methods implemented in Python.
## Installation
Install via
```
pip install causalipy
```
It might make sense to add the py-arrow dependency (which is currently required
for the example):
```
pip install pyarrow
```
## Example
To run a version of the multi-period difference-in-difference estimator as
proposed by Callaway and Sant’Anna (2020) (this requires additionally pyarrow - e.g. via
`pip install pyarrow` - to be installed currently):
```python
from causalipy.did.multi_periods import MultiPeriodDid
import pandas as pd
url = "https://github.com/mohelm/causalipy-datasets/raw/main/mpdta-sample.feather"
data = pd.read_feather(url)
mpd_minimum_wage = MultiPeriodDid(
data,
outcome="lemp",
treatment_indicator="treat",
time_period_indicator="year",
group_indiciator="first.treat",
formula="~ 1",
)
mpd_minimum_wage.plot_treatment_effects()
```
This will give:

## License
This project is licensed under the terms of the MIT license.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.5.0,<4.0.0 | matplotlib |
| >=1.3.4,<2.0.0 | pandas |
| >=0.5.2,<0.6.0 | patsy |
| >=1.7.2,<2.0.0 | scipy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<3.11 | Python |
نحوه نصب
نصب پکیج whl causalipy-0.1.1:
pip install causalipy-0.1.1.whl
نصب پکیج tar.gz causalipy-0.1.1:
pip install causalipy-0.1.1.tar.gz