All Projects → jrfiedler → Causal_inference_python_code

jrfiedler / Causal_inference_python_code

Python code for part 2 of the book Causal Inference: What If, by Miguel Hernán and James Robins

Projects that are alternatives of or similar to Causal inference python code

Keras realtime multi Person pose estimation
Keras version of Realtime Multi-Person Pose Estimation project
Stars: ✭ 728 (-2.67%)
Mutual labels:  jupyter-notebook
Pandas exercises
Practice your pandas skills!
Stars: ✭ 7,140 (+854.55%)
Mutual labels:  jupyter-notebook
Mememoji
A facial expression classification system that recognizes 6 basic emotions: happy, sad, surprise, fear, anger and neutral.
Stars: ✭ 743 (-0.67%)
Mutual labels:  jupyter-notebook
Numerical Computing Is Fun
Learning numerical computing with notebooks for all ages.
Stars: ✭ 730 (-2.41%)
Mutual labels:  jupyter-notebook
Adjusttext
A small library for automatically adjustment of text position in matplotlib plots to minimize overlaps.
Stars: ✭ 731 (-2.27%)
Mutual labels:  jupyter-notebook
Sgx Full Orderbook Tick Data Trading Strategy
Providing the solutions for high-frequency trading (HFT) strategies using data science approaches (Machine Learning) on Full Orderbook Tick Data.
Stars: ✭ 733 (-2.01%)
Mutual labels:  jupyter-notebook
Sifirdan Ileri Seviyeye Python Programlama
Udemy üzerindeki Python kurslarında kullanılan materyaller
Stars: ✭ 722 (-3.48%)
Mutual labels:  jupyter-notebook
Gans In Action
Companion repository to GANs in Action: Deep learning with Generative Adversarial Networks
Stars: ✭ 748 (+0%)
Mutual labels:  jupyter-notebook
Swift
Swift for TensorFlow
Stars: ✭ 6,037 (+707.09%)
Mutual labels:  jupyter-notebook
Neural Processes
This repository contains notebook implementations of the following Neural Process variants: Conditional Neural Processes (CNPs), Neural Processes (NPs), Attentive Neural Processes (ANPs).
Stars: ✭ 744 (-0.53%)
Mutual labels:  jupyter-notebook
Matplotlib Gallery
Examples of matplotlib codes and plots
Stars: ✭ 730 (-2.41%)
Mutual labels:  jupyter-notebook
Hitchhikers Guide
The Hitchhiker's Guide to Data Science for Social Good
Stars: ✭ 732 (-2.14%)
Mutual labels:  jupyter-notebook
Nbstripout
strip output from Jupyter and IPython notebooks
Stars: ✭ 738 (-1.34%)
Mutual labels:  jupyter-notebook
How To Predict Stock Prices Easily Demo
How to Predict Stock Prices Easily - Intro to Deep Learning #7 by Siraj Raval on Youtube
Stars: ✭ 729 (-2.54%)
Mutual labels:  jupyter-notebook
Spark Movie Lens
An on-line movie recommender using Spark, Python Flask, and the MovieLens dataset
Stars: ✭ 745 (-0.4%)
Mutual labels:  jupyter-notebook
Ecco
Visualize and explore NLP language models. Ecco creates interactive visualizations directly in Jupyter notebooks explaining the behavior of Transformer-based language models (like GPT2).
Stars: ✭ 723 (-3.34%)
Mutual labels:  jupyter-notebook
Essentialmath
Stars: ✭ 735 (-1.74%)
Mutual labels:  jupyter-notebook
Deeprl Tutorials
Contains high quality implementations of Deep Reinforcement Learning algorithms written in PyTorch
Stars: ✭ 748 (+0%)
Mutual labels:  jupyter-notebook
Dat4
General Assembly's Data Science course in Washington, DC
Stars: ✭ 748 (+0%)
Mutual labels:  jupyter-notebook
Getting Things Done With Pytorch
Jupyter Notebook tutorials on solving real-world problems with Machine Learning & Deep Learning using PyTorch. Topics: Face detection with Detectron 2, Time Series anomaly detection with LSTM Autoencoders, Object Detection with YOLO v5, Build your first Neural Network, Time Series forecasting for Coronavirus daily cases, Sentiment Analysis with BERT.
Stars: ✭ 738 (-1.34%)
Mutual labels:  jupyter-notebook

Python 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.

The code here roughly corresponds to the Stata, R, or SAS programs found at the book site.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].