File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ library(halfmoon)
26
26
set.seed(1234)
27
27
```
28
28
29
- 1 . Specify causal question
29
+ 1 . Specify causal question (e.g. target trial)
30
30
2 . Draw assumptions (causal diagram)
31
31
3 . Model assumptions (e.g. propensity score)
32
32
4 . Analyze propensities (diagnostics)
@@ -481,5 +481,5 @@ bind_rows(
481
481
482
482
## Resources {background-color="#23373B"}
483
483
### [ 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
485
484
### [ 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
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ knitr::include_graphics("img/tidy_ggdagitty.png")
112
112
``` {r}
113
113
#| eval: false
114
114
#| code-line-numbers: "|2|3"
115
+ library(ggdag)
115
116
dagify(
116
117
cancer ~ smoking,
117
118
coffee ~ smoking
@@ -390,8 +391,15 @@ bind_rows(
390
391
391
392
. . .
392
393
394
+ ** Forgetting to consider time-ordering (something has to happen before something else to cause it!)**
395
+
396
+ . . .
397
+
393
398
** Selection bias and colliders (more later!)**
394
399
400
+ . . .
401
+
402
+ ** Incorrect functional form for confounders (e.g. BMI often non-linear)**
395
403
396
404
## Resources: ggdag vignettes {background-color="#23373B"}
397
405
### [ An Introduction to ggdag] ( https://ggdag.malco.io/articles/intro-to-ggdag.html )
You can’t perform that action at this time.
0 commit comments