RobsonTigre/everyday-ci
R & Python code and datasets for Everyday Causal Inference — a free book on experiments, DiD, IV, RDD, and causal time series for business
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
Everyday Causal Inference — Data and code repository
Learn how to find causal answers to your everyday questions using R and Python.
About the book
At everydaycausal.com you will learn how to estimate, test, and explain causal impacts. You don't need any specific background to master the ideas there. Every concept is broken down step-by-step, with relatable examples from e-commerce, fintech, and digital businesses.
About this repository
You can read the book without running any code, but following along with the exercises is the best way to learn. To do that, you'll need R or Python installed.
Data
All datasets used in the book are available in the data folder. You can either:
- Download manually from the folder above, or
- Load directly in your code by passing the raw URL to
read.csv()in R orpd.read_csv()in Python:
https://raw.githubusercontent.com/RobsonTigre/everyday-ci/main/data/<filename>.csv
Contribute and stay updated
- ⭐ Star this repo to signal interest and get updates.
- 🔔 Follow the author for weekly posts on causal inference.
- 📬 Subscribe to be notified when new content is released.
- 🚩 Feedback: Found an error or have a suggestion? Submit feedback here.
Citation
If you use this material in your work, please cite:
Tigre, Robson. Everyday Causal Inference: How to estimate, test, and explain impacts with R and Python. https://www.everydaycausal.com/
Legal notice
Copyright © 2025 by Robson Tigre. All rights reserved.
You may: Read the book and run the code for personal learning; Share official links to the book or repository; Cite short excerpts with proper attribution.
You may not: Reproduce or redistribute the text, code, or data; Use any part of this work to train AI or machine learning systems; Create competing courses, tutorials, or educational products based on this material; Build commercial training datasets from this content; Develop or market products using this book's name or its variants.
This content is for educational purposes only and does not constitute professional advice. All code is provided "as is," without warranty. The author disclaims all liability for outcomes based on this material. See the full legal notice for details.
Similar Projects
Discover other similar projects and AI models.
Stata-aligned econometrics for Python, with field-level validation across the documented support surface.
StatsPAI is an Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills, an MCP server, and R/Stata parity validation.
12 weeks, 26 lessons, 52 quizzes, classic Machine Learning for all
Difference-in-Differences causal inference in Python. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies. sklearn-like API, validated against R.
Step-by-step causal inference — method selection, assumptions, and robustness checks
Reverse engineer anything with agents, from app behavior down to native binaries.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...