Skip to content

Commit

Permalink
Merge pull request #228 from r-causal/fix_caption
Browse files Browse the repository at this point in the history
fix typo in caption
  • Loading branch information
malcolmbarrett authored Feb 15, 2024
2 parents 9a38a31 + b226511 commit cc4632c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Depends:
Imports:
broom,
causalworkshop (>= 0.1.0),
datasauRus,
emo (>= 0.0.0.9000),
ggdag (>= 0.2.10.9000),
ggokabeito,
Expand Down
2 changes: 1 addition & 1 deletion chapters/06-not-just-a-stats-problem.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ In 3, it's a mediator (it depends on the research question).
```{r}
#| label: fig-causal_quartet
#| message: false
#| fig-cap: "The Causal Quartet, revealed. The first and last datasets are types of collider bias; we should *not* control for `covariate.` In the second dataset, `covariate` is a confounder, and we *should* control for it. In the third dataset, `covariate` is a mediator, and we should control for it if we want the total effect, but not if we want the direct effect."
#| fig-cap: "The Causal Quartet, revealed. The first and last datasets are types of collider bias; we should *not* control for `covariate.` In the second dataset, `covariate` is a confounder, and we *should* control for it. In the third dataset, `covariate` is a mediator, and we should control for it if we want the direct effect, but not if we want the total effect."
causal_quartet |>
ggplot(aes(exposure, outcome)) +
geom_point() +
Expand Down

0 comments on commit cc4632c

Please sign in to comment.