Skip to content

Commit 872e880

Browse files
Merge pull request #48 from tgerke/master
2 parents cef3cbd + bc74934 commit 872e880

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

slides/raw/01-causal_modeling_whole_game.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ library(halfmoon)
2626
set.seed(1234)
2727
```
2828

29-
1. Specify causal question
29+
1. Specify causal question (e.g. target trial)
3030
2. Draw assumptions (causal diagram)
3131
3. Model assumptions (e.g. propensity score)
3232
4. Analyze propensities (diagnostics)
@@ -481,5 +481,5 @@ bind_rows(
481481

482482
## Resources {background-color="#23373B"}
483483
### [Causal Inference](https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/): Comprehensive text on causal inference. Free online.
484-
### [Causal Inference Notebook](http://causalinferencebookr.netlify.com): R code to go along with Causal Inference
485484
### [Bootstrap confidence intervals with {rsample}](https://rsample.tidymodels.org/articles/Applications/Intervals.html)
485+
### [R-causal](https://github.com/r-causal): Our GitHub org with R packages and examples

slides/raw/04-dags.qmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ knitr::include_graphics("img/tidy_ggdagitty.png")
112112
```{r}
113113
#| eval: false
114114
#| code-line-numbers: "|2|3"
115+
library(ggdag)
115116
dagify(
116117
cancer ~ smoking,
117118
coffee ~ smoking
@@ -390,8 +391,15 @@ bind_rows(
390391

391392
. . .
392393

394+
**Forgetting to consider time-ordering (something has to happen before something else to cause it!)**
395+
396+
. . .
397+
393398
**Selection bias and colliders (more later!)**
394399

400+
. . .
401+
402+
**Incorrect functional form for confounders (e.g. BMI often non-linear)**
395403

396404
## Resources: ggdag vignettes {background-color="#23373B"}
397405
### [An Introduction to ggdag](https://ggdag.malco.io/articles/intro-to-ggdag.html)

0 commit comments

Comments
 (0)