• Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
  • Created over 4 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of visual guides to help applied scientists learn causal inference.

Visual Guides for Causal Inference

A collection of visual guides designed to help applied scientists learn causal inference.


DOI

This repository is licensed under a CC BY 4.0. This means you are free to share or adapt these materials however you see fit as long as you provide attribution (Kat Hoffman).


Current guides and educational illustrations include:

  1. Targeted Maximum Likelihood Estimation (TMLE), a doubly robust semiparametric estimation method commonly used for causal inference. The guide shows the steps for estimating the mean difference in outcomes, adjusted for confounders, for a binary outcome and binary treatment. A full tutorial with R code is available on my blog.

  1. Superlearning (also known as stacking), an ensemble learning method recommended to use with TMLE. A full tutorial with R code is available on my blog.

  1. G-computation (also called the parametric g-formula), an estimation method for causal inference which involves estimating outcome regressions under substitutions to the data.

  1. Inverse Probability Weighting an estimation method for causal inference which involves estimating treatment regressions (propensity scores) and reweighting the observed outcomes.

  1. Causal inference intervention types with examples using U.S. air pollution data and a corresponding blog post

  1. Identification vs. Estimation in casual inference.

Causal Inference Comics

I've also recently been playing around with comics for causal inference concepts. Here's a few so far:

References

Laan, M. J., & Rose, S. (2011). Targeted learning: Causal inference for observational and experimental data. New York: Springer.

Licensing

Visual Guides for Causal Inference by Kat Hoffman is licensed under CC BY 4.0

More Repositories

1

steroids-trial-emulation

Tutorial for a target trial emulation with a time-varying exposure, time-dependent confounding, time-to-event outcome, and Sequentially Doubly Robust estimation (Hoffman et al. 2022).
R
32
star
2

lmtp-tutorial

Corresponding code guide to the tutorial paper "Introducing longitudinal modified treatment policies: a unified framework for studying complex exposures" (Hoffman et al., 2023)
R
21
star
3

swimmer-plots

Slides for my R/Medicine 2022 talk, "Making Swimmer Plots for Longitudinal Data using {ggplot}".
HTML
11
star
4

khstats-quarto

Trials and tribulations of redoing KHstats website in Quarto.
HTML
9
star
5

lida-comprisks

Code and synthetic data for the illustrative application of "Causal survival analysis under competing risks using longitudinal modified treatment policies" (Diaz, Hoffman, Hejazi 2022).
R
5
star
6

Rproj-here-tutorial

Slides and interactive code for NYC R-Ladies June 2019 Lightning Talk and WCM Computing Club presentation.
HTML
4
star
7

sl3-demo

A demo of the R package sl3 for R-Ladies NYC Sept. 2019 Meetup
HTML
3
star
8

tmleplus

R functions to calculate effects from tmle, ltmle, survtmle, and SuperLearner fit objects.
R
3
star
9

superlearning-wcm-cc

Presentation materials for WCM Computing Club talk.
JavaScript
2
star
10

sixpack

core[lation] work
R
2
star
11

sot-sepsis-application

Code and synthetic data to run the analyses for "Effect of Sepsis on Death as Modified by Solid Organ Transplantation" (Ackerman et al., 2022). Exposure is sepsis upon ICU admission, effect modifier is solid organ transplant (SOT) status, outcome is time to 28-day mortality. Informative loss-to-follow-up by discharge from the hospital.
R
2
star
12

snack

R functions for robust SE reporting
R
1
star
13

cedar

R functions to wrangle the Weill Cornell Medicine CEDAR ICU database.
R
1
star
14

power_sims

The beginnings of a tutorial for building custom power simulations in R. Includes code for SLR power sim and presentation for WCM Biostatistics Computing Club.
1
star
15

causal-club

Estimation code practice for WCM's Causal (Inference) Club 💛📙❤️
R
1
star
16

uw-quarto-proj

Template for University of Washington classwork/projects.
HTML
1
star
17

lmtp_comprisks

modifying nt-williams/lmtp for comp risks
R
1
star