Skip to content

Commit 2abd9c8

Browse files
20260505 - DAGs
1 parent 6e02641 commit 2abd9c8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

dags.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Directed Acyclic Graphs (DAGs)"
44

55
When conceptualizing and designing a study, or when developing plans to test a research question, it is important to draw a directed acyclic graph (DAG).
66
DAGs, like [path diagrams](figures.qmd#sec-pathDiagrams), are causal diagrams.
7-
Causal diagrams depict the hypoothesized causal processes that link two or more variables.
7+
Causal diagrams depict the hypothesized causal processes that link two or more variables.
88
Path diagrams are typically used after analysis to describe and report the findings in analysis (when using path analysis, [factor analysis](factorAnalysis.qmd), or [structural equation modeling](sem.qmd)).
99
By contrast, DAGs are particularly useful when designing a study or before analysis, because they can help specify which variables it is important to control for and—just as importantly—which variables it is important not to control for.
1010

@@ -16,10 +16,13 @@ That is, it is okay to control for variables that influence `Y` that do not infl
1616
When including these variable as control variables in a model, they are called precision variables.
1717
You do not need to include precision variables in the model because the estimate of the association is already unbiased if you have controlled for all confounds.
1818
However, including precision variables in the model reduces residual variance in the outcome variable and can yield more precise estimates (i.e., smaller standard errors) of the association between the predictor variable and outcome variable.
19+
It is also possibly okay to control for ancestors of the predictor variable that are not confounds.
20+
That is, it is possibly okay to control for variable that influence `X` that do not influence `Y` and that are not influenced by `X`.
21+
However, controlling for ancestors of the predictor variable (that are not confounds) can reduce precision of the estimate of the causal effect because you are reducing useful variation in `X`.
1922

2023
In addition, there are some variables that are important not to control for.
2124
It is important not to control for mediators of two variables for which you want to determine the estimate of the causal effect—unless you are interested in the direct causal effect of the predictor variable on the outcome variable above and beyond the mediator.
22-
In addition, it is is important not to control for a) ancestors of the predictor variable that are not confounds, b) descendants of the outcome variable, and c) colliders (unless the collider is also a confound).
25+
In addition, it is is important not to control for a) descendants of the outcome variable and b) colliders (unless the collider is also a confound).
2326

2427
For more information on DAGs, including ancestors, descendants, confounders, and colliders, see here: <https://isaactpetersen.github.io/Fantasy-Football-Analytics-Textbook/causal-inference.html#sec-causalDiagrams>.
2528

0 commit comments

Comments
 (0)