RepositoryR
RobsonTigre

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

147stars
10forks
0issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: instrumental-variables

#1 Repository of the week

1
TINIX TRENDING·Topic: ab-testing

#1 Repository of the week

1
TINIX TRENDING·Topic: difference-in-differences

#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 or pd.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/

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.

RepositoryPython
ZhenHaoFu810/StataFlow

Stata-aligned econometrics for Python, with field-level validation across the documented support surface.

171
Oct 9, 2026
RepositoryPython
brycewang-stanford/StatsPAI

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.

392
Nov 30, 2026
RepositoryJupyter Notebook
microsoft/ML-For-Beginners

12 weeks, 26 lessons, 52 quizzes, classic Machine Learning for all

92.5k
Nov 7, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryPython
igerber/diff-diff

Difference-in-Differences causal inference in Python. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies. sklearn-like API, validated against R.

417
Dec 1, 2026
RepositoryPython
RobsonTigre/everyday-causal-skills

Step-by-step causal inference — method selection, assumptions, and robustness checks

84
Sep 23, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

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

♥0
157.6M
Jun 1, 2026