You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: confounding9.qmd
+23-56Lines changed: 23 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,18 @@
1
1
## Interaction {.unnumbered}
2
2
3
-
# Introduction {-}
3
+
Interaction is commonly assessed by either
4
4
5
-
Interaction is commonly assessed by either creating a **joint exposure** factor or by including **main effects and a product term**. When the specification is saturated, these parameterizations are mathematically equivalent and encode the same set of contrasts on the log-odds scale. For clear presentation, it is often helpful to report the full set of joint effects relative to a single reference, and selected simple effects within strata, alongside additive interaction measures [@knol2012recommendations].
5
+
(1) creating a **joint exposure** factor or
6
+
(2) by including **main effects and a product term**.
7
+
8
+
When the specification is saturated, these parameterizations are mathematically equivalent and encode the same set of contrasts on the log-odds scale.
9
+
10
+
For clear presentation, it is often helpful to report the full set of joint effects relative to a single reference, and selected simple effects within strata, alongside additive interaction measures [@knol2012recommendations].
6
11
7
12
The motivating example in this document uses publicly available **NHANES 2009–2012** data, studying hypertension defined by systolic blood pressure ≥ 130 mmHg and examining whether the effect of obesity differs across levels of self reported race or ethnicity.
8
13
9
14
We will use interaction analysis functions (`jointeffects, inteffects, addint, addintlist` from `svyTable1` package) to compute and present joint effects, simple effects, and additive interaction measures with appropriate survey adjustments from saturated logistic regression models.
10
15
11
-
# Methods {-}
12
-
13
16
## Data and variables {-}
14
17
15
18
We use **NHANES 2009–2012** adults (Age ≥ 20) with survey design variables. The binary outcome is **Hypertension_130**, defined from average systolic BP. The two interacting exposures are **Race1** and **ObeseStatus** derived from BMI ≥ 30, with `"White"` and `"Not Obese"` as reference levels. We adjust for **Age**.
Create one factor for all combinations of Race1 × ObeseStatus with `"White_Not Obese"` as the reference, and fit a survey-weighted logistic regression adjusting for Age.
69
+
Create one factor (variable) for all combinations of Race1 × ObeseStatus with `"White_Not Obese"` as the reference, and fit a survey-weighted logistic regression adjusting for Age.
Retrieve the **joint effects** for each Race1 × ObeseStatus combination relative to `"White & Not Obese"`. From the interaction model we obtain these by post-estimation transformation using the function `jointeffects`. From the joint model they correspond directly to exponentiated coefficients for the non-reference levels.
The NHANES example illustrates that, under saturation, the joint-variable and interaction-term parameterizations are equivalent on the multiplicative scale. The joint-variable model directly presents the set of contrasts most often recommended for reporting, while the interaction model provides the traditional interaction coefficient and requires transformation to recover the same joint effects. Either model supports simple effects within strata. Reporting both joint and selected simple effects, together with additive interaction measures, provides a more complete summary.
174
184
175
-
# Key messages {-}
185
+
##Key messages {-}
176
186
177
187
- Under saturation, joint and interaction models encode the same multiplicative contrasts.
178
188
- Present the full set of joint effects against a single reference profile.
179
189
- Include selected simple effects and additive interaction measures for clarity.
0 commit comments