Skip to content

Commit

Permalink
smooth and link spots where we mention non-collapsibility
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmbarrett committed Oct 4, 2024
1 parent 95db207 commit 9dbd57d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions chapters/06-not-just-a-stats-problem.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ The adjustment set for `covariate`'s effect on `outcome` is empty, and `exposure
But look again.
`exposure` is a mediator for `covariate`'s effect on `outcome`; some of the total effect is mediated through `outcome`, while there is also a direct effect of `covariate` on `outcome`. **Both estimates are unbiased, but they are different *types* of estimates**. The effect of `exposure` on `outcome` is the *total effect* of that relationship, while the effect of `covariate` on `outcome` is the *direct effect*.

[^06-not-just-a-stats-problem-4]: Additionally, OLS produces a *collapsable* effect.
Other effects, like the odds and hazards ratios, are *non-collapsable*, meaning you may need to include non-confounding variables in the model that cause the outcome in order to estimate the effect of interest accurately.
[^06-not-just-a-stats-problem-4]: Additionally, OLS produces a *collapsible* effect.
Other effects, like the odds and hazards ratios, are *non-collapsible*, meaning that the conditional odds or hazards ratio might differ from its marginal version, even when there is no confounding. We'll discuss non-collapsibility in @sec-non-collapse.

```{r}
#| label: fig-quartet_confounder
Expand Down
6 changes: 3 additions & 3 deletions chapters/08-building-ps-models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ Conversely, including variables that are predictors of the *exposure but not the
Luckily, this bias seems relatively negligible in practice, especially compared to the risk of confounding bias [@Myers2011].

::: callout-note
Some estimates, such as the odds and hazard ratios, suffer from an additional problem called *non-collapsibility*.
For these estimates, adding noise variables (variables unrelated to the exposure or outcome) doesn't reduce precision: they can bias the estimate as well---more the reason to avoid data-driven approaches to selecting variables for causal models.
Some estimates, such as the odds and hazard ratios, have a property called *non-collapsibility*. This means that marginal odds and hazard ratios are not weighted averages of their conditional versions. In other words, the results might differ depending on the variable added or removed, even when the variable is not a confounder. We'll explore this more in @sec-non-collapse.
:::

Another variable to be wary of is a *collider*, a descendant of both the exposure and outcome.
Expand Down Expand Up @@ -302,6 +301,7 @@ Then, we model `y ~ x + z` and see how much the coefficient on `x` has changed.
A common rule is to add a variable if it changes the coefficient of`x` by 10%.

Unfortunately, this technique is unreliable.
As we've discussed, controlling for mediators, colliders, and instrumental variables all affect the estimate of the relationship between `x` and `y`, and usually, they result in bias.
As we've discussed, controlling for mediators, colliders, and instrumental variables all affect the estimate of the relationship between `x` and `y`, and usually, they result in bias.
Additionally, the non-collapsibility of the odds and hazards ratios mean they may change with the addition or subtraction of a variable without representing an improvement or worsening in bias.
In other words, there are many different types of variables besides confounders that can cause a change in the coefficient of the exposure.
As discussed above, confounding bias is often the most crucial factor, but systematically searching your variables for anything that changes the exposure coefficient can compound many types of bias.

0 comments on commit 9dbd57d

Please sign in to comment.