jrfiedler/causal_inference_python_code
jrfiedler/causal_inference_python_code has 1,365 GitHub stars and 413 forks. GitHot measured 0 stars in 24 hours, +2 in 7 days, and +2 in 15 days. Last checked 2026-11-21 22:08 UTC. Last push 2022-01-08.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Python code for part 2 of the book Causal Inference: What If, by Miguel Hernán and James Robins
데이터README.md
OriginalPython Code for Causal Inference: What If
This repo contains Python code for Part II of the book Causal Inference: What If, by Miguel Hernán and James Robins (book site):
Hernán MA, Robins JM (2020). Causal Inference: What If. Boca Raton: Chapman & Hall/CRC.
This Python version roughly corresponds to the Stata, R, or SAS programs found at the book site, and was also translated into Julia, here.
The code in this repo has been checked against the 30 March 2021 version of the book.
Python dependencies
Required Python packages:
- numpy
- pandas
- statsmodels
- scipy
- matplotlib
- linearmodels
- tqdm
If you use the Anaconda distribution of Python, you'll have most of those packages already, and you'll only need to install
- linearmodels
- tqdm
Data
The data can be obtained from the book site.
The notebooks all assume that the Excel version of the data has been saved in the same directory as the notebooks.
Author
James Fiedler, with contributions from Petty PY Chen and Piyush Madan
관련 프로젝트 살펴보기
불러오는 중…